File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
py/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def get_dom_attribute(self, name) -> str:
148
148
"""
149
149
return self ._execute (Command .GET_ELEMENT_ATTRIBUTE , {"name" : name })["value" ]
150
150
151
- def get_attribute (self , name ) -> str :
151
+ def get_attribute (self , name ) -> str | None :
152
152
"""Gets the given attribute or property of the element.
153
153
154
154
This method will first try to return the value of a property with the
@@ -265,8 +265,8 @@ def location_once_scrolled_into_view(self) -> dict:
265
265
on the screen an element is so that we can click it. This method should
266
266
cause the element to be scrolled into view.
267
267
268
- Returns the top lefthand corner location on the screen, or
269
- ``None`` if the element is not visible.
268
+ Returns the top lefthand corner location on the screen, or zero
269
+ coordinates if the element is not visible.
270
270
"""
271
271
old_loc = self ._execute (
272
272
Command .W3C_EXECUTE_SCRIPT ,
You can’t perform that action at this time.
0 commit comments