Skip to content

Commit

Permalink
[py] update chromium driver constructors for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 1, 2023
1 parent d7291fd commit e91ba21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions py/selenium/webdriver/chrome/webdriver.py
Expand Up @@ -43,9 +43,9 @@ def __init__(
options = options if options else Options()

super().__init__(
DesiredCapabilities.CHROME["browserName"],
"goog",
options,
service,
keep_alive,
browser_name=DesiredCapabilities.CHROME["browserName"],
vendor_prefix="goog",
options=options,
service=service,
keep_alive=keep_alive,
)
12 changes: 6 additions & 6 deletions py/selenium/webdriver/edge/webdriver.py
Expand Up @@ -29,7 +29,7 @@ def __init__(
self,
options: Options = None,
service: Service = None,
keep_alive=True,
keep_alive: bool = True,
) -> None:
"""Creates a new instance of the edge driver. Starts the service and
then creates new instance of edge driver.
Expand All @@ -43,9 +43,9 @@ def __init__(
options = options if options else Options()

super().__init__(
DesiredCapabilities.EDGE["browserName"],
"ms",
options,
service,
keep_alive,
browser_name=DesiredCapabilities.EDGE["browserName"],
vendor_prefix="ms",
options=options,
service=service,
keep_alive=keep_alive,
)

0 comments on commit e91ba21

Please sign in to comment.