File tree Expand file tree Collapse file tree
py/selenium/webdriver/remote Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments