Skip to content

Commit 5af0447

Browse files
shbenzergryznar
authored andcommitted
[py] Fixed Incorrect Tabbing in DocStrings (SeleniumHQ#15096)
1 parent 7881978 commit 5af0447

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
@@ -385,6 +385,7 @@ def execute_cdp_cmd(self, cmd: str, cmd_args: dict):
385385
----------
386386
cmd : str,
387387
- Command name
388+
388389
cmd_args : dict
389390
- Command args
390391
- Empty dict {} if there is no command args
@@ -408,6 +409,7 @@ def execute(self, driver_command: str, params: dict = None) -> dict:
408409
----------
409410
driver_command : str
410411
- The name of the command to execute as a string.
412+
411413
params : dict
412414
- A dictionary of named Parameters to send with the command.
413415
@@ -503,6 +505,7 @@ def execute_script(self, script, *args):
503505
----------
504506
script : str
505507
- The javascript to execute.
508+
506509
*args : tuple
507510
- Any applicable arguments for your JavaScript.
508511
@@ -532,6 +535,7 @@ def execute_async_script(self, script: str, *args):
532535
----------
533536
script : str
534537
- The javascript to execute.
538+
535539
*args : tuple
536540
- Any applicable arguments for your JavaScript.
537541
@@ -1006,6 +1010,7 @@ def set_window_size(self, width, height, windowHandle: str = "current") -> None:
10061010
----------
10071011
width : int
10081012
- the width in pixels to set the window to
1013+
10091014
height : int
10101015
- the height in pixels to set the window to
10111016
@@ -1039,6 +1044,7 @@ def set_window_position(self, x: float, y: float, windowHandle: str = "current")
10391044
---------
10401045
x : float
10411046
- The x-coordinate in pixels to set the window position
1047+
10421048
y : float
10431049
- The y-coordinate in pixels to set the window position
10441050
@@ -1399,6 +1405,7 @@ def download_file(self, file_name: str, target_directory: str) -> None:
13991405
----------
14001406
file_name : str
14011407
- The name of the file to download.
1408+
14021409
target_directory : str
14031410
- The path to the directory to save the downloaded file.
14041411
@@ -1494,8 +1501,10 @@ def fedcm_dialog(self, timeout=5, poll_frequency=0.5, ignored_exceptions=None):
14941501
----------
14951502
timeout : int
14961503
- How long to wait for the dialog
1504+
14971505
poll_frequency : floatHow
14981506
- Frequently to poll
1507+
14991508
ignored_exceptions : Any
15001509
- Exceptions to ignore while waiting
15011510

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)