@@ -1494,14 +1494,12 @@ def get_remote_driver(
1494
1494
return webdriver .Remote (
1495
1495
command_executor = address ,
1496
1496
options = chrome_options ,
1497
- keep_alive = True ,
1498
1497
)
1499
1498
else :
1500
1499
warnings .simplefilter ("ignore" , category = DeprecationWarning )
1501
1500
return webdriver .Remote (
1502
1501
command_executor = address ,
1503
1502
desired_capabilities = capabilities ,
1504
- keep_alive = True ,
1505
1503
)
1506
1504
elif browser_name == constants .Browser .FIREFOX :
1507
1505
firefox_options = _set_firefox_options (
@@ -1566,14 +1564,12 @@ def get_remote_driver(
1566
1564
return webdriver .Remote (
1567
1565
command_executor = address ,
1568
1566
options = firefox_options ,
1569
- keep_alive = True ,
1570
1567
)
1571
1568
else :
1572
1569
warnings .simplefilter ("ignore" , category = DeprecationWarning )
1573
1570
return webdriver .Remote (
1574
1571
command_executor = address ,
1575
1572
desired_capabilities = capabilities ,
1576
- keep_alive = True ,
1577
1573
)
1578
1574
elif browser_name == constants .Browser .INTERNET_EXPLORER :
1579
1575
capabilities = webdriver .DesiredCapabilities .INTERNETEXPLORER
@@ -1583,7 +1579,6 @@ def get_remote_driver(
1583
1579
return webdriver .Remote (
1584
1580
command_executor = address ,
1585
1581
options = remote_options ,
1586
- keep_alive = True ,
1587
1582
)
1588
1583
else :
1589
1584
warnings .simplefilter ("ignore" , category = DeprecationWarning )
@@ -1592,7 +1587,6 @@ def get_remote_driver(
1592
1587
return webdriver .Remote (
1593
1588
command_executor = address ,
1594
1589
desired_capabilities = capabilities ,
1595
- keep_alive = True ,
1596
1590
)
1597
1591
elif browser_name == constants .Browser .EDGE :
1598
1592
capabilities = webdriver .DesiredCapabilities .EDGE
@@ -1602,7 +1596,6 @@ def get_remote_driver(
1602
1596
return webdriver .Remote (
1603
1597
command_executor = address ,
1604
1598
options = remote_options ,
1605
- keep_alive = True ,
1606
1599
)
1607
1600
else :
1608
1601
warnings .simplefilter ("ignore" , category = DeprecationWarning )
@@ -1611,7 +1604,6 @@ def get_remote_driver(
1611
1604
return webdriver .Remote (
1612
1605
command_executor = address ,
1613
1606
desired_capabilities = capabilities ,
1614
- keep_alive = True ,
1615
1607
)
1616
1608
elif browser_name == constants .Browser .SAFARI :
1617
1609
capabilities = webdriver .DesiredCapabilities .SAFARI
@@ -1621,7 +1613,6 @@ def get_remote_driver(
1621
1613
return webdriver .Remote (
1622
1614
command_executor = address ,
1623
1615
options = remote_options ,
1624
- keep_alive = True ,
1625
1616
)
1626
1617
else :
1627
1618
warnings .simplefilter ("ignore" , category = DeprecationWarning )
@@ -1630,7 +1621,6 @@ def get_remote_driver(
1630
1621
return webdriver .Remote (
1631
1622
command_executor = address ,
1632
1623
desired_capabilities = capabilities ,
1633
- keep_alive = True ,
1634
1624
)
1635
1625
elif browser_name == constants .Browser .OPERA :
1636
1626
opera_options = _set_chrome_options (
@@ -1727,14 +1717,12 @@ def get_remote_driver(
1727
1717
return webdriver .Remote (
1728
1718
command_executor = address ,
1729
1719
options = opera_options ,
1730
- keep_alive = True ,
1731
1720
)
1732
1721
else :
1733
1722
warnings .simplefilter ("ignore" , category = DeprecationWarning )
1734
1723
return webdriver .Remote (
1735
1724
command_executor = address ,
1736
1725
desired_capabilities = capabilities ,
1737
- keep_alive = True ,
1738
1726
)
1739
1727
elif browser_name == constants .Browser .REMOTE :
1740
1728
if selenium4_or_newer :
@@ -1744,14 +1732,12 @@ def get_remote_driver(
1744
1732
return webdriver .Remote (
1745
1733
command_executor = address ,
1746
1734
options = remote_options ,
1747
- keep_alive = True ,
1748
1735
)
1749
1736
else :
1750
1737
warnings .simplefilter ("ignore" , category = DeprecationWarning )
1751
1738
return webdriver .Remote (
1752
1739
command_executor = address ,
1753
1740
desired_capabilities = desired_caps ,
1754
- keep_alive = True ,
1755
1741
)
1756
1742
1757
1743
0 commit comments