Skip to content

Commit 487b9a2

Browse files
authored
[py] Fixed Incorrect Tabbing in DocStrings (#15096)
1 parent e3768fe commit 487b9a2

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

py/selenium/webdriver/common/actions/action_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def add_pointer_input(self, kind: str, name: str) -> PointerInput:
113113
- "mouse"
114114
- "touch"
115115
- "pen"
116+
116117
name : str
117118
The name of the pointer input device.
118119

py/selenium/webdriver/remote/webdriver.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def execute_cdp_cmd(self, cmd: str, cmd_args: dict):
384384
----------
385385
cmd : str,
386386
- Command name
387+
387388
cmd_args : dict
388389
- Command args
389390
- Empty dict {} if there is no command args
@@ -407,6 +408,7 @@ def execute(self, driver_command: str, params: dict = None) -> dict:
407408
----------
408409
driver_command : str
409410
- The name of the command to execute as a string.
411+
410412
params : dict
411413
- A dictionary of named Parameters to send with the command.
412414
@@ -502,6 +504,7 @@ def execute_script(self, script, *args):
502504
----------
503505
script : str
504506
- The javascript to execute.
507+
505508
*args : tuple
506509
- Any applicable arguments for your JavaScript.
507510
@@ -531,6 +534,7 @@ def execute_async_script(self, script: str, *args):
531534
----------
532535
script : str
533536
- The javascript to execute.
537+
534538
*args : tuple
535539
- Any applicable arguments for your JavaScript.
536540
@@ -1005,6 +1009,7 @@ def set_window_size(self, width, height, windowHandle: str = "current") -> None:
10051009
----------
10061010
width : int
10071011
- the width in pixels to set the window to
1012+
10081013
height : int
10091014
- the height in pixels to set the window to
10101015
@@ -1038,6 +1043,7 @@ def set_window_position(self, x: float, y: float, windowHandle: str = "current")
10381043
---------
10391044
x : float
10401045
- The x-coordinate in pixels to set the window position
1046+
10411047
y : float
10421048
- The y-coordinate in pixels to set the window position
10431049
@@ -1398,6 +1404,7 @@ def download_file(self, file_name: str, target_directory: str) -> None:
13981404
----------
13991405
file_name : str
14001406
- The name of the file to download.
1407+
14011408
target_directory : str
14021409
- The path to the directory to save the downloaded file.
14031410
@@ -1493,8 +1500,10 @@ def fedcm_dialog(self, timeout=5, poll_frequency=0.5, ignored_exceptions=None):
14931500
----------
14941501
timeout : int
14951502
- How long to wait for the dialog
1503+
14961504
poll_frequency : floatHow
14971505
- Frequently to poll
1506+
14981507
ignored_exceptions : Any
14991508
- Exceptions to ignore while waiting
15001509

py/selenium/webdriver/remote/webelement.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,10 @@ def _execute(self, command, params=None):
554554
555555
Parameters:
556556
----------
557-
command : any
557+
command : any
558558
The name of the command to _execute as a string.
559-
params : dict
559+
560+
params : dict
560561
A dictionary of named Parameters to send with the command.
561562
562563
Returns:

py/selenium/webdriver/support/wait.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@ def __init__(
5353
driver
5454
- Instance of WebDriver (Ie, Firefox, Chrome or Remote) or
5555
a WebElement
56+
5657
timeout
5758
- Number of seconds before timing out
59+
5860
poll_frequency
5961
- Sleep interval between calls
6062
- By default, it is 0.5 second.
63+
6164
ignored_exceptions
6265
- Iterable structure of exception classes ignored during calls.
6366
- By default, it contains NoSuchElementException only.
@@ -99,6 +102,7 @@ def until(self, method: Callable[[D], Union[Literal[False], T]], message: str =
99102
----------
100103
method: callable(WebDriver)
101104
- A callable object that takes a WebDriver instance as an argument.
105+
102106
message: str
103107
- Optional message for :exc:`TimeoutException`
104108
@@ -151,6 +155,7 @@ def until_not(self, method: Callable[[D], T], message: str = "") -> Union[T, Lit
151155
----------
152156
method: callable(WebDriver)
153157
- A callable object that takes a WebDriver instance as an argument.
158+
154159
message: str
155160
- Optional message for :exc:`TimeoutException`
156161

0 commit comments

Comments
 (0)