Skip to content

Commit b5b4e01

Browse files
committed
[py] Fix docstring errors that sphinx complained about
1 parent 94a5d87 commit b5b4e01

File tree

13 files changed

+348
-348
lines changed

13 files changed

+348
-348
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_device_with(self, name: str) -> Optional[Union["WheelInput", "PointerInp
5252
"""Get the device with the given name.
5353
5454
Parameters:
55-
----------
55+
-----------
5656
name : str
5757
The name of the device to get.
5858
@@ -86,7 +86,7 @@ def add_key_input(self, name: str) -> KeyInput:
8686
"""Add a new key input device to the action builder.
8787
8888
Parameters:
89-
----------
89+
-----------
9090
name : str
9191
The name of the key input device.
9292
@@ -107,7 +107,7 @@ def add_pointer_input(self, kind: str, name: str) -> PointerInput:
107107
"""Add a new pointer input device to the action builder.
108108
109109
Parameters:
110-
----------
110+
-----------
111111
kind : str
112112
The kind of pointer input device.
113113
- "mouse"
@@ -134,7 +134,7 @@ def add_wheel_input(self, name: str) -> WheelInput:
134134
"""Add a new wheel input device to the action builder.
135135
136136
Parameters:
137-
----------
137+
-----------
138138
name : str
139139
The name of the wheel input device.
140140
@@ -186,7 +186,7 @@ def _add_input(self, new_input: Union[KeyInput, PointerInput, WheelInput]) -> No
186186
"""Add a new input device to the action builder.
187187
188188
Parameters:
189-
----------
189+
-----------
190190
new_input : Union[KeyInput, PointerInput, WheelInput]
191191
The new input device to add.
192192
"""

py/selenium/webdriver/common/by.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class By:
6363
>>> element = driver.find_element(By.TAG_NAME, 'div')
6464
6565
CLASS_NAME:
66-
----------
66+
-----------
6767
Select the element by its class name.
6868
6969
>>> element = driver.find_element(By.CLASS_NAME, 'myElement')

py/selenium/webdriver/common/options.py

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ class BaseOptions(metaclass=ABCMeta):
155155
browser_version = _BaseOptionsDescriptor("browserVersion")
156156
"""Gets and Sets the version of the browser.
157157
158-
Usage
159-
-----
158+
Usage:
159+
------
160160
- Get
161161
- `self.browser_version`
162162
- Set
163163
- `self.browser_version` = `value`
164164
165-
Parameters
166-
----------
165+
Parameters:
166+
-----------
167167
`value`: `str`
168168
169-
Returns
170-
-------
169+
Returns:
170+
--------
171171
- Get
172172
- `str`
173173
- Set
@@ -177,19 +177,19 @@ class BaseOptions(metaclass=ABCMeta):
177177
platform_name = _BaseOptionsDescriptor("platformName")
178178
"""Gets and Sets name of the platform.
179179
180-
Usage
181-
-----
180+
Usage:
181+
------
182182
- Get
183183
- `self.platform_name`
184184
- Set
185185
- `self.platform_name` = `value`
186186
187-
Parameters
188-
----------
187+
Parameters:
188+
-----------
189189
`value`: `str`
190190
191-
Returns
192-
-------
191+
Returns:
192+
--------
193193
- Get
194194
- `str`
195195
- Set
@@ -199,19 +199,19 @@ class BaseOptions(metaclass=ABCMeta):
199199
accept_insecure_certs = _BaseOptionsDescriptor("acceptInsecureCerts")
200200
"""Gets and Set whether the session accepts insecure certificates.
201201
202-
Usage
203-
-----
202+
Usage:
203+
------
204204
- Get
205205
- `self.accept_insecure_certs`
206206
- Set
207207
- `self.accept_insecure_certs` = `value`
208208
209-
Parameters
210-
----------
209+
Parameters:
210+
-----------
211211
`value`: `bool`
212212
213-
Returns
214-
-------
213+
Returns:
214+
--------
215215
- Get
216216
- `bool`
217217
- Set
@@ -221,19 +221,19 @@ class BaseOptions(metaclass=ABCMeta):
221221
strict_file_interactability = _BaseOptionsDescriptor("strictFileInteractability")
222222
"""Gets and Sets whether session is about file interactability.
223223
224-
Usage
225-
-----
224+
Usage:
225+
------
226226
- Get
227227
- `self.strict_file_interactability`
228228
- Set
229229
- `self.strict_file_interactability` = `value`
230230
231-
Parameters
232-
----------
231+
Parameters:
232+
-----------
233233
`value`: `bool`
234234
235-
Returns
236-
-------
235+
Returns:
236+
--------
237237
- Get
238238
- `bool`
239239
- Set
@@ -243,19 +243,19 @@ class BaseOptions(metaclass=ABCMeta):
243243
set_window_rect = _BaseOptionsDescriptor("setWindowRect")
244244
"""Gets and Sets window size and position.
245245
246-
Usage
247-
-----
246+
Usage:
247+
------
248248
- Get
249249
- `self.set_window_rect`
250250
- Set
251251
- `self.set_window_rect` = `value`
252252
253-
Parameters
254-
----------
253+
Parameters:
254+
-----------
255255
`value`: `bool`
256256
257-
Returns
258-
-------
257+
Returns:
258+
--------
259259
- Get
260260
- `bool`
261261
- Set
@@ -265,19 +265,19 @@ class BaseOptions(metaclass=ABCMeta):
265265
enable_bidi = _BaseOptionsDescriptor("enableBidi")
266266
"""Gets and Set whether the session has WebDriverBiDi enabled.
267267
268-
Usage
269-
-----
268+
Usage:
269+
------
270270
- Get
271271
- `self.enable_bidi`
272272
- Set
273273
- `self.enable_bidi` = `value`
274274
275-
Parameters
276-
----------
275+
Parameters:
276+
-----------
277277
`value`: `bool`
278278
279-
Returns
280-
-------
279+
Returns:
280+
--------
281281
- Get
282282
- `bool`
283283
- Set
@@ -287,19 +287,19 @@ class BaseOptions(metaclass=ABCMeta):
287287
web_socket_url = _BaseOptionsDescriptor("webSocketUrl")
288288
"""Gets and Set whether the session accepts insecure certificates.
289289
290-
Usage
291-
-----
290+
Usage:
291+
------
292292
- Get
293293
- `self.web_socket_url`
294294
- Set
295295
- `self.web_socket_url` = `value`
296296
297-
Parameters
298-
----------
297+
Parameters:
298+
-----------
299299
`value`: `str`
300300
301-
Returns
302-
-------
301+
Returns:
302+
--------
303303
- Get
304304
- `str` or `None`
305305
- Set
@@ -309,19 +309,19 @@ class BaseOptions(metaclass=ABCMeta):
309309
page_load_strategy = _PageLoadStrategyDescriptor("pageLoadStrategy")
310310
""":Gets and Sets page load strategy, the default is "normal".
311311
312-
Usage
313-
-----
312+
Usage:
313+
------
314314
- Get
315315
- `self.page_load_strategy`
316316
- Set
317317
- `self.page_load_strategy` = `value`
318318
319-
Parameters
320-
----------
319+
Parameters:
320+
-----------
321321
`value`: `str`
322322
323-
Returns
324-
-------
323+
Returns:
324+
--------
325325
- Get
326326
- `str`
327327
- Set
@@ -332,19 +332,19 @@ class BaseOptions(metaclass=ABCMeta):
332332
""":Gets and Sets unhandled prompt behavior, the default is "dismiss and
333333
notify".
334334
335-
Usage
336-
-----
335+
Usage:
336+
------
337337
- Get
338338
- `self.unhandled_prompt_behavior`
339339
- Set
340340
- `self.unhandled_prompt_behavior` = `value`
341341
342-
Parameters
343-
----------
342+
Parameters:
343+
-----------
344344
`value`: `str`
345345
346-
Returns
347-
-------
346+
Returns:
347+
--------
348348
- Get
349349
- `str`
350350
- Set
@@ -355,19 +355,19 @@ class BaseOptions(metaclass=ABCMeta):
355355
""":Gets and Sets implicit timeout, pageLoad timeout and script timeout if
356356
set (in milliseconds)
357357
358-
Usage
359-
-----
358+
Usage:
359+
------
360360
- Get
361361
- `self.timeouts`
362362
- Set
363363
- `self.timeouts` = `value`
364364
365-
Parameters
366-
----------
365+
Parameters:
366+
-----------
367367
`value`: `dict`
368368
369-
Returns
370-
-------
369+
Returns:
370+
--------
371371
- Get
372372
- `dict`
373373
- Set
@@ -377,19 +377,19 @@ class BaseOptions(metaclass=ABCMeta):
377377
proxy = _ProxyDescriptor("proxy")
378378
"""Sets and Gets Proxy.
379379
380-
Usage
381-
-----
380+
Usage:
381+
------
382382
- Get
383383
- `self.proxy`
384384
- Set
385385
- `self.proxy` = `value`
386386
387-
Parameters
388-
----------
387+
Parameters:
388+
-----------
389389
`value`: `Proxy`
390390
391-
Returns
392-
-------
391+
Returns:
392+
--------
393393
- Get
394394
- `Proxy`
395395
- Set
@@ -399,19 +399,19 @@ class BaseOptions(metaclass=ABCMeta):
399399
enable_downloads = _BaseOptionsDescriptor("se:downloadsEnabled")
400400
"""Gets and Sets whether session can download files.
401401
402-
Usage
403-
-----
402+
Usage:
403+
------
404404
- Get
405405
- `self.enable_downloads`
406406
- Set
407407
- `self.enable_downloads` = `value`
408408
409-
Parameters
410-
----------
409+
Parameters:
410+
-----------
411411
`value`: `bool`
412412
413-
Returns
414-
-------
413+
Returns:
414+
--------
415415
- Get
416416
- `bool`
417417
- Set
@@ -421,19 +421,19 @@ class BaseOptions(metaclass=ABCMeta):
421421
web_socket_url = _BaseOptionsDescriptor("webSocketUrl")
422422
"""Gets and Sets WebSocket URL.
423423
424-
Usage
425-
-----
424+
Usage:
425+
------
426426
- Get
427427
- `self.web_socket_url`
428428
- Set
429429
- `self.web_socket_url` = `value`
430430
431-
Parameters
432-
----------
431+
Parameters:
432+
-----------
433433
`value`: `bool`
434434
435-
Returns
436-
-------
435+
Returns:
436+
--------
437437
- Get
438438
- `bool`
439439
- Set

0 commit comments

Comments
 (0)