Skip to content

Commit 7fdb3be

Browse files
committed
format.sh
1 parent 1f18f9b commit 7fdb3be

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ def __init__(
218218
- Custom class to use for web elements. Defaults to WebElement.
219219
client_config : object or None
220220
- Custom client configuration to use. Defaults to None.
221-
222221
"""
223222

224223
if isinstance(options, list):
@@ -433,7 +432,8 @@ def execute(self, driver_command: str, params: dict = None) -> dict:
433432
return {"success": 0, "value": None, "sessionId": self.session_id}
434433

435434
def get(self, url: str) -> None:
436-
"""Navigate the browser to the specified URL in the current window or tab.
435+
"""Navigate the browser to the specified URL in the current window or
436+
tab.
437437
438438
The method does not return until the page is fully loaded (i.e. the
439439
onload event has fired).
@@ -465,7 +465,7 @@ def title(self) -> str:
465465
def pin_script(self, script: str, script_key=None) -> ScriptKey:
466466
"""Store common javascript scripts to be executed later by a unique
467467
hashable ID.
468-
468+
469469
Example:
470470
--------
471471
>>> script = "return document.getElementById('foo').value"
@@ -476,7 +476,7 @@ def pin_script(self, script: str, script_key=None) -> ScriptKey:
476476

477477
def unpin(self, script_key: ScriptKey) -> None:
478478
"""Remove a pinned script from storage.
479-
479+
480480
Example:
481481
--------
482482
>>> driver.unpin(script_key)
@@ -488,7 +488,7 @@ def unpin(self, script_key: ScriptKey) -> None:
488488

489489
def get_pinned_scripts(self) -> List[str]:
490490
"""Return a list of all pinned scripts.
491-
491+
492492
Example:
493493
--------
494494
>>> pinned_scripts = driver.get_pinned_scripts()
@@ -648,7 +648,7 @@ def print_page(self, print_options: Optional[PrintOptions] = None) -> str:
648648

649649
@property
650650
def switch_to(self) -> SwitchTo:
651-
""" Return an object containing all options to switch focus into.
651+
"""Return an object containing all options to switch focus into.
652652
653653
Returns:
654654
--------
@@ -924,7 +924,7 @@ def find_elements(self, by=By.ID, value: Optional[str] = None) -> List[WebElemen
924924
@property
925925
def capabilities(self) -> dict:
926926
"""Returns the drivers current capabilities being used.
927-
927+
928928
Example:
929929
--------
930930
>>> print(driver.capabilities)
@@ -1279,7 +1279,7 @@ def _get_cdp_details(self):
12791279
# Virtual Authenticator Methods
12801280
def add_virtual_authenticator(self, options: VirtualAuthenticatorOptions) -> None:
12811281
"""Adds a virtual authenticator with the given options.
1282-
1282+
12831283
Example:
12841284
--------
12851285
>>> from selenium.webdriver.common.virtual_authenticator import VirtualAuthenticatorOptions
@@ -1291,7 +1291,7 @@ def add_virtual_authenticator(self, options: VirtualAuthenticatorOptions) -> Non
12911291
@property
12921292
def virtual_authenticator_id(self) -> str:
12931293
"""Returns the id of the virtual authenticator.
1294-
1294+
12951295
Example:
12961296
--------
12971297
>>> print(driver.virtual_authenticator_id)
@@ -1315,7 +1315,7 @@ def remove_virtual_authenticator(self) -> None:
13151315
@required_virtual_authenticator
13161316
def add_credential(self, credential: Credential) -> None:
13171317
"""Injects a credential into the authenticator.
1318-
1318+
13191319
Example:
13201320
--------
13211321
>>> from selenium.webdriver.common.credential import Credential
@@ -1327,7 +1327,7 @@ def add_credential(self, credential: Credential) -> None:
13271327
@required_virtual_authenticator
13281328
def get_credentials(self) -> List[Credential]:
13291329
"""Returns the list of credentials owned by the authenticator.
1330-
1330+
13311331
Example:
13321332
--------
13331333
>>> credentials = driver.get_credentials()
@@ -1338,7 +1338,7 @@ def get_credentials(self) -> List[Credential]:
13381338
@required_virtual_authenticator
13391339
def remove_credential(self, credential_id: Union[str, bytearray]) -> None:
13401340
"""Removes a credential from the authenticator.
1341-
1341+
13421342
Example:
13431343
--------
13441344
>>> credential_id = "[email protected]"
@@ -1355,7 +1355,7 @@ def remove_credential(self, credential_id: Union[str, bytearray]) -> None:
13551355
@required_virtual_authenticator
13561356
def remove_all_credentials(self) -> None:
13571357
"""Removes all credentials from the authenticator.
1358-
1358+
13591359
Example:
13601360
--------
13611361
>>> driver.remove_all_credentials()
@@ -1380,7 +1380,7 @@ def set_user_verified(self, verified: bool) -> None:
13801380
def get_downloadable_files(self) -> dict:
13811381
"""Retrieves the downloadable files as a map of file names and their
13821382
corresponding URLs.
1383-
1383+
13841384
Example:
13851385
--------
13861386
>>> files = driver.get_downloadable_files()
@@ -1423,7 +1423,7 @@ def download_file(self, file_name: str, target_directory: str) -> None:
14231423

14241424
def delete_downloadable_files(self) -> None:
14251425
"""Deletes all downloadable files.
1426-
1426+
14271427
Example:
14281428
--------
14291429
>>> driver.delete_downloadable_files()
@@ -1435,9 +1435,9 @@ def delete_downloadable_files(self) -> None:
14351435

14361436
@property
14371437
def fedcm(self) -> FedCM:
1438-
"""
1439-
Returns the Federated Credential Management (FedCM) dialog object for interaction.
1440-
1438+
"""Returns the Federated Credential Management (FedCM) dialog object
1439+
for interaction.
1440+
14411441
Returns:
14421442
-------
14431443
FedCM: an object providing access to all Federated Credential Management (FedCM) dialog commands.
@@ -1460,7 +1460,7 @@ def fedcm(self) -> FedCM:
14601460
@property
14611461
def supports_fedcm(self) -> bool:
14621462
"""Returns whether the browser supports FedCM capabilities.
1463-
1463+
14641464
Example:
14651465
--------
14661466
>>> print(driver.supports_fedcm)
@@ -1478,7 +1478,7 @@ def _require_fedcm_support(self):
14781478
@property
14791479
def dialog(self):
14801480
"""Returns the FedCM dialog object for interaction.
1481-
1481+
14821482
Example:
14831483
--------
14841484
>>> dialog = driver.dialog
@@ -1493,7 +1493,7 @@ def fedcm_dialog(self, timeout=5, poll_frequency=0.5, ignored_exceptions=None):
14931493
----------
14941494
timeout : int
14951495
- How long to wait for the dialog
1496-
poll_frequency : floatHow
1496+
poll_frequency : floatHow
14971497
- Frequently to poll
14981498
ignored_exceptions : Any
14991499
- Exceptions to ignore while waiting

0 commit comments

Comments
 (0)