Skip to content

Commit 9eeb0fd

Browse files
zhuopengAutomatedTester
authored andcommitted
fix bug in proxy constructor that some properties are not proper set (#3459)
1 parent bbd201b commit 9eeb0fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/selenium/webdriver/common/proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ def __init__(self, raw=None):
101101
if 'autodetect' in raw and raw['autodetect'] is not None:
102102
self.auto_detect = raw['autodetect']
103103
if 'socksProxy' in raw and raw['socksProxy'] is not None:
104-
self.socksProxy = raw['socksProxy']
104+
self.socks_proxy = raw['socksProxy']
105105
if 'socksUsername' in raw and raw['socksUsername'] is not None:
106-
self.socksUsername = raw['socksUsername']
106+
self.socks_username = raw['socksUsername']
107107
if 'socksPassword' in raw and raw['socksPassword'] is not None:
108-
self.socksPassword = raw['socksPassword']
108+
self.socks_password = raw['socksPassword']
109109

110110
@property
111111
def proxy_type(self):

0 commit comments

Comments
 (0)