Skip to content

Commit e91ba21

Browse files
committed
[py] update chromium driver constructors for readability
1 parent d7291fd commit e91ba21

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

py/selenium/webdriver/chrome/webdriver.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def __init__(
4343
options = options if options else Options()
4444

4545
super().__init__(
46-
DesiredCapabilities.CHROME["browserName"],
47-
"goog",
48-
options,
49-
service,
50-
keep_alive,
46+
browser_name=DesiredCapabilities.CHROME["browserName"],
47+
vendor_prefix="goog",
48+
options=options,
49+
service=service,
50+
keep_alive=keep_alive,
5151
)

py/selenium/webdriver/edge/webdriver.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(
2929
self,
3030
options: Options = None,
3131
service: Service = None,
32-
keep_alive=True,
32+
keep_alive: bool = True,
3333
) -> None:
3434
"""Creates a new instance of the edge driver. Starts the service and
3535
then creates new instance of edge driver.
@@ -43,9 +43,9 @@ def __init__(
4343
options = options if options else Options()
4444

4545
super().__init__(
46-
DesiredCapabilities.EDGE["browserName"],
47-
"ms",
48-
options,
49-
service,
50-
keep_alive,
46+
browser_name=DesiredCapabilities.EDGE["browserName"],
47+
vendor_prefix="ms",
48+
options=options,
49+
service=service,
50+
keep_alive=keep_alive,
5151
)

0 commit comments

Comments
 (0)