Skip to content

Commit e92987a

Browse files
M1trolldiemol
andauthored
[py] Fix type hints and docstring (#12067)
Co-authored-by: Diego Molina <[email protected]>
1 parent f8b7a1d commit e92987a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_dom_attribute(self, name) -> str:
148148
"""
149149
return self._execute(Command.GET_ELEMENT_ATTRIBUTE, {"name": name})["value"]
150150

151-
def get_attribute(self, name) -> str:
151+
def get_attribute(self, name) -> str | None:
152152
"""Gets the given attribute or property of the element.
153153
154154
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:
265265
on the screen an element is so that we can click it. This method should
266266
cause the element to be scrolled into view.
267267
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.
270270
"""
271271
old_loc = self._execute(
272272
Command.W3C_EXECUTE_SCRIPT,

0 commit comments

Comments
 (0)