Skip to content

Commit 6040463

Browse files
committed
Simplify options for Remote WebDriver usage with Selenium Grid
1 parent f0cbb77 commit 6040463

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,14 +1494,12 @@ def get_remote_driver(
14941494
return webdriver.Remote(
14951495
command_executor=address,
14961496
options=chrome_options,
1497-
keep_alive=True,
14981497
)
14991498
else:
15001499
warnings.simplefilter("ignore", category=DeprecationWarning)
15011500
return webdriver.Remote(
15021501
command_executor=address,
15031502
desired_capabilities=capabilities,
1504-
keep_alive=True,
15051503
)
15061504
elif browser_name == constants.Browser.FIREFOX:
15071505
firefox_options = _set_firefox_options(
@@ -1566,14 +1564,12 @@ def get_remote_driver(
15661564
return webdriver.Remote(
15671565
command_executor=address,
15681566
options=firefox_options,
1569-
keep_alive=True,
15701567
)
15711568
else:
15721569
warnings.simplefilter("ignore", category=DeprecationWarning)
15731570
return webdriver.Remote(
15741571
command_executor=address,
15751572
desired_capabilities=capabilities,
1576-
keep_alive=True,
15771573
)
15781574
elif browser_name == constants.Browser.INTERNET_EXPLORER:
15791575
capabilities = webdriver.DesiredCapabilities.INTERNETEXPLORER
@@ -1583,7 +1579,6 @@ def get_remote_driver(
15831579
return webdriver.Remote(
15841580
command_executor=address,
15851581
options=remote_options,
1586-
keep_alive=True,
15871582
)
15881583
else:
15891584
warnings.simplefilter("ignore", category=DeprecationWarning)
@@ -1592,7 +1587,6 @@ def get_remote_driver(
15921587
return webdriver.Remote(
15931588
command_executor=address,
15941589
desired_capabilities=capabilities,
1595-
keep_alive=True,
15961590
)
15971591
elif browser_name == constants.Browser.EDGE:
15981592
capabilities = webdriver.DesiredCapabilities.EDGE
@@ -1602,7 +1596,6 @@ def get_remote_driver(
16021596
return webdriver.Remote(
16031597
command_executor=address,
16041598
options=remote_options,
1605-
keep_alive=True,
16061599
)
16071600
else:
16081601
warnings.simplefilter("ignore", category=DeprecationWarning)
@@ -1611,7 +1604,6 @@ def get_remote_driver(
16111604
return webdriver.Remote(
16121605
command_executor=address,
16131606
desired_capabilities=capabilities,
1614-
keep_alive=True,
16151607
)
16161608
elif browser_name == constants.Browser.SAFARI:
16171609
capabilities = webdriver.DesiredCapabilities.SAFARI
@@ -1621,7 +1613,6 @@ def get_remote_driver(
16211613
return webdriver.Remote(
16221614
command_executor=address,
16231615
options=remote_options,
1624-
keep_alive=True,
16251616
)
16261617
else:
16271618
warnings.simplefilter("ignore", category=DeprecationWarning)
@@ -1630,7 +1621,6 @@ def get_remote_driver(
16301621
return webdriver.Remote(
16311622
command_executor=address,
16321623
desired_capabilities=capabilities,
1633-
keep_alive=True,
16341624
)
16351625
elif browser_name == constants.Browser.OPERA:
16361626
opera_options = _set_chrome_options(
@@ -1727,14 +1717,12 @@ def get_remote_driver(
17271717
return webdriver.Remote(
17281718
command_executor=address,
17291719
options=opera_options,
1730-
keep_alive=True,
17311720
)
17321721
else:
17331722
warnings.simplefilter("ignore", category=DeprecationWarning)
17341723
return webdriver.Remote(
17351724
command_executor=address,
17361725
desired_capabilities=capabilities,
1737-
keep_alive=True,
17381726
)
17391727
elif browser_name == constants.Browser.REMOTE:
17401728
if selenium4_or_newer:
@@ -1744,14 +1732,12 @@ def get_remote_driver(
17441732
return webdriver.Remote(
17451733
command_executor=address,
17461734
options=remote_options,
1747-
keep_alive=True,
17481735
)
17491736
else:
17501737
warnings.simplefilter("ignore", category=DeprecationWarning)
17511738
return webdriver.Remote(
17521739
command_executor=address,
17531740
desired_capabilities=desired_caps,
1754-
keep_alive=True,
17551741
)
17561742

17571743

0 commit comments

Comments
 (0)