File tree 1 file changed +2
-2
lines changed
py/selenium/webdriver/remote
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ def location_once_scrolled_into_view(self):
342
342
@property
343
343
def size (self ):
344
344
"""The size of the element."""
345
- size = self ._execute (Command .GET_ELEMENT_SIZE )['value' ]
345
+ size = self ._execute (Command .GET_ELEMENT_RECT )['value' ]
346
346
new_size = {}
347
347
new_size ["height" ] = size ["height" ]
348
348
new_size ["width" ] = size ["width" ]
@@ -356,7 +356,7 @@ def value_of_css_property(self, property_name):
356
356
@property
357
357
def location (self ):
358
358
"""The location of the element in the renderable canvas."""
359
- old_loc = self ._execute (Command .GET_ELEMENT_LOCATION )['value' ]
359
+ old_loc = self ._execute (Command .GET_ELEMENT_RECT )['value' ]
360
360
new_loc = {"x" : old_loc ['x' ],
361
361
"y" : old_loc ['y' ]}
362
362
return new_loc
You can’t perform that action at this time.
0 commit comments