Skip to content

Commit c785b1f

Browse files
[py] Extending proxy ignoring to direct clients instead of just remote
1 parent 3daf112 commit c785b1f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

py/selenium/webdriver/chromium/remote_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020

2121
class ChromiumRemoteConnection(RemoteConnection):
22-
def __init__(self, remote_server_addr, vendor_prefix, browser_name, keep_alive=True):
23-
RemoteConnection.__init__(self, remote_server_addr, keep_alive)
22+
def __init__(self, remote_server_addr, vendor_prefix, browser_name, keep_alive=True, ignore_proxy=False):
23+
RemoteConnection.__init__(self, remote_server_addr, keep_alive, ignore_proxy=ignore_proxy)
2424
self.browser_name = browser_name
2525
self._commands["launchApp"] = ('POST', '/session/$sessionId/chromium/launch_app')
2626
self._commands["setNetworkConditions"] = ('POST', '/session/$sessionId/chromium/network_conditions')

py/selenium/webdriver/firefox/remote_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class FirefoxRemoteConnection(RemoteConnection):
2323

2424
browser_name = DesiredCapabilities.FIREFOX['browserName']
2525

26-
def __init__(self, remote_server_addr, keep_alive=True):
27-
RemoteConnection.__init__(self, remote_server_addr, keep_alive)
26+
def __init__(self, remote_server_addr, keep_alive=True, ignore_proxy=False):
27+
RemoteConnection.__init__(self, remote_server_addr, keep_alive, ignore_proxy=ignore_proxy)
2828

2929
self._commands["GET_CONTEXT"] = ('GET', '/session/$sessionId/moz/context')
3030
self._commands["SET_CONTEXT"] = ("POST", "/session/$sessionId/moz/context")

py/selenium/webdriver/remote/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_remote_connection(capabilities, command_executor, keep_alive, ignore_loc
127127
RemoteConnection
128128
)
129129

130-
return handler(command_executor, keep_alive=keep_alive)
130+
return handler(command_executor, keep_alive=keep_alive, ignore_proxy=ignore_local_proxy)
131131

132132

133133
@add_metaclass(ABCMeta)

py/selenium/webdriver/safari/remote_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class SafariRemoteConnection(RemoteConnection):
2323

2424
browser_name = DesiredCapabilities.SAFARI['browserName']
2525

26-
def __init__(self, remote_server_addr, keep_alive=True):
27-
RemoteConnection.__init__(self, remote_server_addr, keep_alive)
26+
def __init__(self, remote_server_addr, keep_alive=True, ignore_proxy=False):
27+
RemoteConnection.__init__(self, remote_server_addr, keep_alive, ignore_proxy=ignore_proxy)
2828

2929
self._commands["GET_PERMISSIONS"] = ('GET', '/session/$sessionId/apple/permissions')
3030
self._commands["SET_PERMISSIONS"] = ('POST', '/session/$sessionId/apple/permissions')

0 commit comments

Comments
 (0)