@@ -184,9 +184,13 @@ static CommandPayload GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW(String id) {
184
184
static CommandPayload GET_ELEMENT_SIZE (String id ) {
185
185
return new CommandPayload (GET_ELEMENT_SIZE , ImmutableMap .of ("id" , id ));
186
186
}
187
- String GET_ELEMENT_PROPERTY = "getElementProperty" ;
188
- static CommandPayload GET_ELEMENT_PROPERTY (String id , String name ) {
189
- return new CommandPayload (GET_ELEMENT_PROPERTY , ImmutableMap .of ("id" , id , "name" , name ));
187
+ String GET_ELEMENT_DOM_PROPERTY = "getElementDomProperty" ;
188
+ static CommandPayload GET_ELEMENT_DOM_PROPERTY (String id , String name ) {
189
+ return new CommandPayload (GET_ELEMENT_DOM_PROPERTY , ImmutableMap .of ("id" , id , "name" , name ));
190
+ }
191
+ String GET_ELEMENT_DOM_ATTRIBUTE = "getElementDomAttribute" ;
192
+ static CommandPayload GET_ELEMENT_DOM_ATTRIBUTE (String id , String name ) {
193
+ return new CommandPayload (GET_ELEMENT_DOM_ATTRIBUTE , ImmutableMap .of ("id" , id , "name" , name ));
190
194
}
191
195
String GET_ELEMENT_ATTRIBUTE = "getElementAttribute" ;
192
196
static CommandPayload GET_ELEMENT_ATTRIBUTE (String id , String name ) {
@@ -218,7 +222,7 @@ static CommandPayload SET_ALERT_VALUE(String keysToSend) {
218
222
@ Deprecated
219
223
static CommandPayload SET_IMPLICIT_WAIT_TIMEOUT (long time , TimeUnit unit ) {
220
224
return new CommandPayload (
221
- SET_TIMEOUT , ImmutableMap .of ("implicit" , TimeUnit .MILLISECONDS .convert (time , unit )));
225
+ SET_TIMEOUT , ImmutableMap .of ("implicit" , TimeUnit .MILLISECONDS .convert (time , unit )));
222
226
}
223
227
224
228
static CommandPayload SET_IMPLICIT_WAIT_TIMEOUT (Duration duration ) {
@@ -228,7 +232,7 @@ static CommandPayload SET_IMPLICIT_WAIT_TIMEOUT(Duration duration) {
228
232
@ Deprecated
229
233
static CommandPayload SET_SCRIPT_TIMEOUT (long time , TimeUnit unit ) {
230
234
return new CommandPayload (
231
- SET_TIMEOUT , ImmutableMap .of ("script" , TimeUnit .MILLISECONDS .convert (time , unit )));
235
+ SET_TIMEOUT , ImmutableMap .of ("script" , TimeUnit .MILLISECONDS .convert (time , unit )));
232
236
}
233
237
234
238
static CommandPayload SET_SCRIPT_TIMEOUT (Duration duration ) {
@@ -238,7 +242,7 @@ static CommandPayload SET_SCRIPT_TIMEOUT(Duration duration) {
238
242
@ Deprecated
239
243
static CommandPayload SET_PAGE_LOAD_TIMEOUT (long time , TimeUnit unit ) {
240
244
return new CommandPayload (
241
- SET_TIMEOUT , ImmutableMap .of ("pageLoad" , TimeUnit .MILLISECONDS .convert (time , unit )));
245
+ SET_TIMEOUT , ImmutableMap .of ("pageLoad" , TimeUnit .MILLISECONDS .convert (time , unit )));
242
246
}
243
247
244
248
static CommandPayload SET_PAGE_LOAD_TIMEOUT (Duration duration ) {
@@ -315,19 +319,19 @@ static CommandPayload IME_ACTIVATE_ENGINE(String engine) {
315
319
String SET_CURRENT_WINDOW_POSITION = "setWindowPosition" ;
316
320
static CommandPayload SET_CURRENT_WINDOW_POSITION (Point targetPosition ) {
317
321
return new CommandPayload (
318
- SET_CURRENT_WINDOW_POSITION , ImmutableMap .of ("x" , targetPosition .x , "y" , targetPosition .y ));
322
+ SET_CURRENT_WINDOW_POSITION , ImmutableMap .of ("x" , targetPosition .x , "y" , targetPosition .y ));
319
323
}
320
324
String GET_CURRENT_WINDOW_POSITION = "getWindowPosition" ;
321
325
static CommandPayload GET_CURRENT_WINDOW_POSITION () {
322
326
return new CommandPayload (
323
- GET_CURRENT_WINDOW_POSITION , ImmutableMap .of ("windowHandle" , "current" ));
327
+ GET_CURRENT_WINDOW_POSITION , ImmutableMap .of ("windowHandle" , "current" ));
324
328
}
325
329
326
330
// W3C compatible Window API
327
331
String SET_CURRENT_WINDOW_SIZE = "setCurrentWindowSize" ;
328
332
static CommandPayload SET_CURRENT_WINDOW_SIZE (Dimension targetSize ) {
329
333
return new CommandPayload (
330
- SET_CURRENT_WINDOW_SIZE , ImmutableMap .of ("width" , targetSize .width , "height" , targetSize .height ));
334
+ SET_CURRENT_WINDOW_SIZE , ImmutableMap .of ("width" , targetSize .width , "height" , targetSize .height ));
331
335
}
332
336
String GET_CURRENT_WINDOW_SIZE = "getCurrentWindowSize" ;
333
337
String MAXIMIZE_CURRENT_WINDOW = "maximizeCurrentWindow" ;
0 commit comments