@@ -90,7 +90,7 @@ def _create_caps(caps):
9090 Moves the Firefox profile, if present, from the old location to the new Firefox
9191 options object.
9292
93- Attributes :
93+ Parameters :
9494 ----------
9595 caps : dict
9696 - A dictionary of capabilities requested by the caller.
@@ -201,7 +201,7 @@ def __init__(
201201 """Create a new driver that will issue commands using the wire
202202 protocol.
203203
204- Attributes :
204+ Parameters :
205205 ----------
206206 command_executor : str or remote_connection.RemoteConnection
207207 - Either a string representing the URL of the remote server or a custom
@@ -272,7 +272,7 @@ def file_detector_context(self, file_detector_class, *args, **kwargs):
272272 """Overrides the current file detector (if necessary) in limited
273273 context. Ensures the original file detector is set afterwards.
274274
275- Attributes :
275+ Parameters :
276276 ----------
277277 file_detector_class : object
278278 - Class of the desired file detector. If the class is different
@@ -332,7 +332,7 @@ def stop_client(self):
332332 def start_session (self , capabilities : dict ) -> None :
333333 """Creates a new session with the desired capabilities.
334334
335- Attributes :
335+ Parameters :
336336 ----------
337337 capabilities : dict
338338 - A capabilities dict to start the session with.
@@ -380,7 +380,7 @@ def execute_cdp_cmd(self, cmd: str, cmd_args: dict):
380380 domains/commands, refer to link
381381 https://chromedevtools.github.io/devtools-protocol/
382382
383- Attributes :
383+ Parameters :
384384 ----------
385385 cmd : str,
386386 - Command name
@@ -403,12 +403,12 @@ def execute_cdp_cmd(self, cmd: str, cmd_args: dict):
403403 def execute (self , driver_command : str , params : dict = None ) -> dict :
404404 """Sends a command to be executed by a command.CommandExecutor.
405405
406- Attributes :
406+ Parameters :
407407 ----------
408408 driver_command : str
409409 - The name of the command to execute as a string.
410410 params : dict
411- - A dictionary of named Attributes to send with the command.
411+ - A dictionary of named Parameters to send with the command.
412412
413413 Returns:
414414 --------
@@ -438,7 +438,7 @@ def get(self, url: str) -> None:
438438 The method does not return until the page is fully loaded (i.e. the
439439 onload event has fired).
440440
441- Attributes :
441+ Parameters :
442442 ----------
443443 url : str
444444 - The URL to be opened by the browser.
@@ -498,7 +498,7 @@ def get_pinned_scripts(self) -> List[str]:
498498 def execute_script (self , script , * args ):
499499 """Synchronously Executes JavaScript in the current window/frame.
500500
501- Attributes :
501+ Parameters :
502502 ----------
503503 script : str
504504 - The javascript to execute.
@@ -527,7 +527,7 @@ def execute_script(self, script, *args):
527527 def execute_async_script (self , script : str , * args ):
528528 """Asynchronously Executes JavaScript in the current window/frame.
529529
530- Attributes :
530+ Parameters :
531531 ----------
532532 script : str
533533 - The javascript to execute.
@@ -634,7 +634,7 @@ def print_page(self, print_options: Optional[PrintOptions] = None) -> str:
634634 """Takes PDF of the current page.
635635
636636 The driver makes a best effort to return a PDF based on the
637- provided Attributes .
637+ provided Parameters .
638638
639639 Example:
640640 --------
@@ -743,7 +743,7 @@ def delete_all_cookies(self) -> None:
743743 def add_cookie (self , cookie_dict ) -> None :
744744 """Adds a cookie to your current session.
745745
746- Attributes :
746+ Parameters :
747747 ----------
748748 cookie_dict : dict
749749 - A dictionary object, with required keys - "name" and "value";
@@ -769,7 +769,7 @@ def implicitly_wait(self, time_to_wait: float) -> None:
769769 per session. To set the timeout for calls to execute_async_script, see
770770 set_script_timeout.
771771
772- Attributes :
772+ Parameters :
773773 ----------
774774 time_to_wait : float
775775 - Amount of time to wait (in seconds)
@@ -784,7 +784,7 @@ def set_script_timeout(self, time_to_wait: float) -> None:
784784 """Set the amount of time that the script should wait during an
785785 execute_async_script call before throwing an error.
786786
787- Attributes :
787+ Parameters :
788788 ---------
789789 time_to_wait : float
790790 - The amount of time to wait (in seconds)
@@ -799,7 +799,7 @@ def set_page_load_timeout(self, time_to_wait: float) -> None:
799799 """Set the amount of time to wait for a page load to complete before
800800 throwing an error.
801801
802- Attributes :
802+ Parameters :
803803 ---------
804804 time_to_wait : float
805805 - The amount of time to wait (in seconds)
@@ -850,7 +850,7 @@ def timeouts(self, timeouts) -> None:
850850 def find_element (self , by = By .ID , value : Optional [str ] = None ) -> WebElement :
851851 """Find an element given a By strategy and locator.
852852
853- Attributes :
853+ Parameters :
854854 ----------
855855 by : selenium.webdriver.common.by.By
856856 The locating strategy to use. Default is `By.ID`. Supported values include:
@@ -886,7 +886,7 @@ def find_element(self, by=By.ID, value: Optional[str] = None) -> WebElement:
886886 def find_elements (self , by = By .ID , value : Optional [str ] = None ) -> List [WebElement ]:
887887 """Find elements given a By strategy and locator.
888888
889- Attributes :
889+ Parameters :
890890 ----------
891891 by : selenium.webdriver.common.by.By
892892 The locating strategy to use. Default is `By.ID`. Supported values include:
@@ -936,7 +936,7 @@ def get_screenshot_as_file(self, filename) -> bool:
936936 Returns False if there is any IOError, else returns True. Use full
937937 paths in your filename.
938938
939- Attributes :
939+ Parameters :
940940 ----------
941941 filename : str
942942 - The full path you wish to save your screenshot to. This
@@ -967,7 +967,7 @@ def save_screenshot(self, filename) -> bool:
967967 Returns False if there is any IOError, else returns True. Use full
968968 paths in your filename.
969969
970- Attributes :
970+ Parameters :
971971 ----------
972972 filename : str
973973 - The full path you wish to save your screenshot to. This
@@ -1001,7 +1001,7 @@ def get_screenshot_as_base64(self) -> str:
10011001 def set_window_size (self , width , height , windowHandle : str = "current" ) -> None :
10021002 """Sets the width and height of the current window. (window.resizeTo)
10031003
1004- Attributes :
1004+ Parameters :
10051005 ----------
10061006 width : int
10071007 - the width in pixels to set the window to
@@ -1034,7 +1034,7 @@ def get_window_size(self, windowHandle: str = "current") -> dict:
10341034 def set_window_position (self , x : float , y : float , windowHandle : str = "current" ) -> dict :
10351035 """Sets the x,y position of the current window. (window.moveTo)
10361036
1037- Attributes :
1037+ Parameters :
10381038 ---------
10391039 x : float
10401040 - The x-coordinate in pixels to set the window position
@@ -1107,7 +1107,7 @@ def file_detector(self, detector) -> None:
11071107 - see LocalFileDetector
11081108 - see UselessFileDetector
11091109
1110- Attributes :
1110+ Parameters :
11111111 ----------
11121112 detector : Any
11131113 - The detector to use. Must not be None.
@@ -1132,7 +1132,7 @@ def orientation(self):
11321132 def orientation (self , value ) -> None :
11331133 """Sets the current orientation of the device.
11341134
1135- Attributes :
1135+ Parameters :
11361136 ----------
11371137 value : str
11381138 - orientation to set it to.
@@ -1161,7 +1161,7 @@ def log_types(self):
11611161 def get_log (self , log_type ):
11621162 """Gets the log for a given log type.
11631163
1164- Attributes :
1164+ Parameters :
11651165 ----------
11661166 log_type : str
11671167 - Type of log that which will be returned
@@ -1367,7 +1367,7 @@ def set_user_verified(self, verified: bool) -> None:
13671367 """Sets whether the authenticator will simulate success or fail on user
13681368 verification.
13691369
1370- Attributes :
1370+ Parameters :
13711371 ----------
13721372 verified: True if the authenticator will pass user verification, False otherwise.
13731373
@@ -1394,7 +1394,7 @@ def download_file(self, file_name: str, target_directory: str) -> None:
13941394 """Downloads a file with the specified file name to the target
13951395 directory.
13961396
1397- Attributes :
1397+ Parameters :
13981398 ----------
13991399 file_name : str
14001400 - The name of the file to download.
@@ -1489,7 +1489,7 @@ def dialog(self):
14891489 def fedcm_dialog (self , timeout = 5 , poll_frequency = 0.5 , ignored_exceptions = None ):
14901490 """Waits for and returns the FedCM dialog.
14911491
1492- Attributes :
1492+ Parameters :
14931493 ----------
14941494 timeout : int
14951495 - How long to wait for the dialog
0 commit comments