@@ -82,7 +82,7 @@ def __repr__(self):
8282 @property
8383 def tag_name (self ) -> str :
8484 """This element's ``tagName`` property.
85-
85+
8686 Returns:
8787 --------
8888 str : The tag name of the element.
@@ -110,7 +110,7 @@ def text(self) -> str:
110110
111111 def click (self ) -> None :
112112 """Clicks the element.
113-
113+
114114 Example:
115115 --------
116116 >>> element = driver.find_element(By.ID, 'foo')
@@ -120,7 +120,7 @@ def click(self) -> None:
120120
121121 def submit (self ) -> None :
122122 """Submits a form.
123-
123+
124124 Example:
125125 --------
126126 >>> form = driver.find_element(By.NAME, 'login')
@@ -145,7 +145,7 @@ def submit(self) -> None:
145145
146146 def clear (self ) -> None :
147147 """Clears the text if it's a text entry element.
148-
148+
149149 Example:
150150 --------
151151 >>> text_field = driver.find_element(By.NAME, 'username')
@@ -249,7 +249,7 @@ def is_selected(self) -> bool:
249249
250250 def is_enabled (self ) -> bool :
251251 """Returns whether the element is enabled.
252-
252+
253253 Example:
254254 --------
255255 >>> is_enabled = element.is_enabled()
@@ -327,7 +327,7 @@ def shadow_root(self) -> ShadowRoot:
327327 # RenderedWebElement Items
328328 def is_displayed (self ) -> bool :
329329 """Whether the element is visible to a user.
330-
330+
331331 Example:
332332 --------
333333 >>> is_displayed = element.is_displayed()
@@ -339,8 +339,7 @@ def is_displayed(self) -> bool:
339339
340340 @property
341341 def location_once_scrolled_into_view (self ) -> dict :
342- """THIS PROPERTY MAY CHANGE WITHOUT WARNING.
343- Use this to discover where
342+ """THIS PROPERTY MAY CHANGE WITHOUT WARNING. Use this to discover where
344343 on the screen an element is so that we can click it. This method should
345344 cause the element to be scrolled into view.
346345
@@ -436,7 +435,8 @@ def aria_role(self) -> str:
436435
437436 Example:
438437 --------
439- >>> role = element.aria_role"""
438+ >>> role = element.aria_role
439+ """
440440 return self ._execute (Command .GET_ELEMENT_ARIA_ROLE )["value" ]
441441
442442 @property
@@ -520,7 +520,7 @@ def screenshot(self, filename) -> bool:
520520 def parent (self ):
521521 """Internal reference to the WebDriver instance this element was found
522522 from.
523-
523+
524524 Example:
525525 --------
526526 >>> element = driver.find_element(By.ID, 'foo')
0 commit comments