Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def clear(self) -> None:
"""
self._execute(Command.CLEAR_ELEMENT)

def get_property(self, name) -> str | bool | WebElement | dict:
def get_property(self, name: str) -> str | bool | WebElement | dict:
"""Gets the given property of the element.

Args:
Expand All @@ -162,7 +162,7 @@ def get_property(self, name) -> str | bool | WebElement | dict:
# if we hit an end point that doesn't understand getElementProperty lets fake it
return self.parent.execute_script("return arguments[0][arguments[1]]", self, name)

def get_dom_attribute(self, name) -> str:
def get_dom_attribute(self, name: str) -> str:
"""Get the HTML attribute value (not reflected properties) of the element.

Returns only attributes declared in the element's HTML markup, unlike
Expand All @@ -179,7 +179,7 @@ def get_dom_attribute(self, name) -> str:
"""
return self._execute(Command.GET_ELEMENT_ATTRIBUTE, {"name": name})["value"]

def get_attribute(self, name) -> str | None:
def get_attribute(self, name: str) -> str | None:
"""Gets the given attribute or property of the element.

This method will first try to return the value of a property with the
Expand Down
Loading