Skip to content

Commit bf53277

Browse files
authored
Change Parameters to Attributes
1 parent b0baa99 commit bf53277

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def clear(self) -> None:
156156
def get_property(self, name) -> str | bool | WebElement | dict:
157157
"""Gets the given property of the element.
158158
159-
Parameters:
159+
Attributes:
160160
----------
161161
name : str
162162
- Name of the property to retrieve.
@@ -180,7 +180,7 @@ def get_dom_attribute(self, name) -> str:
180180
:func:`~selenium.webdriver.remote.BaseWebElement.get_attribute`, this
181181
method only returns attributes declared in the element's HTML markup.
182182
183-
Parameters:
183+
Attributes:
184184
----------
185185
name : str
186186
- Name of the attribute to retrieve.
@@ -212,7 +212,7 @@ def get_attribute(self, name) -> str | None:
212212
use :func:`~selenium.webdriver.remote.BaseWebElement.get_dom_attribute` or
213213
:func:`~selenium.webdriver.remote.BaseWebElement.get_property` methods respectively.
214214
215-
Parameters:
215+
Attributes:
216216
----------
217217
name : str
218218
- Name of the attribute/property to retrieve.
@@ -259,7 +259,7 @@ def is_enabled(self) -> bool:
259259
def send_keys(self, *value: str) -> None:
260260
"""Simulates typing into the element.
261261
262-
Parameters:
262+
Attributes:
263263
----------
264264
value : str
265265
- A string for typing, or setting form fields. For setting
@@ -380,7 +380,7 @@ def size(self) -> dict:
380380
def value_of_css_property(self, property_name) -> str:
381381
"""The value of a CSS property.
382382
383-
Parameters:
383+
Attributes:
384384
----------
385385
property_name : str
386386
- The name of the CSS property to get the value of.
@@ -491,7 +491,7 @@ def screenshot(self, filename) -> bool:
491491
--------
492492
bool : True if the screenshot was saved successfully, False otherwise.
493493
494-
Parameters:
494+
Attributes:
495495
----------
496496
filename : str
497497
The full path you wish to save your screenshot to. This
@@ -552,12 +552,12 @@ def __ne__(self, element):
552552
def _execute(self, command, params=None):
553553
"""Executes a command against the underlying HTML element.
554554
555-
Parameters:
555+
Attributes:
556556
----------
557557
command : any
558558
The name of the command to _execute as a string.
559559
params : dict
560-
A dictionary of named parameters to send with the command.
560+
A dictionary of named Attributes to send with the command.
561561
562562
Returns:
563563
-------
@@ -571,7 +571,7 @@ def _execute(self, command, params=None):
571571
def find_element(self, by=By.ID, value=None) -> WebElement:
572572
"""Find an element given a By strategy and locator.
573573
574-
Parameters:
574+
Attributes:
575575
----------
576576
by : selenium.webdriver.common.by.By
577577
The locating strategy to use. Default is `By.ID`. Supported values include:
@@ -600,7 +600,7 @@ def find_element(self, by=By.ID, value=None) -> WebElement:
600600
def find_elements(self, by=By.ID, value=None) -> List[WebElement]:
601601
"""Find elements given a By strategy and locator.
602602
603-
Parameters:
603+
Attributes:
604604
----------
605605
by : selenium.webdriver.common.by.By
606606
The locating strategy to use. Default is `By.ID`. Supported values include:

0 commit comments

Comments
 (0)