From 4a4f57143b152fecd017460325d831df401ff776 Mon Sep 17 00:00:00 2001 From: Zhuo Peng Date: Sat, 4 Feb 2017 13:48:27 +0800 Subject: [PATCH] fix bug in proxy constructor that some properties are not proper set --- py/selenium/webdriver/common/proxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/selenium/webdriver/common/proxy.py b/py/selenium/webdriver/common/proxy.py index 323b3a1d94152..ccd362af62733 100644 --- a/py/selenium/webdriver/common/proxy.py +++ b/py/selenium/webdriver/common/proxy.py @@ -101,11 +101,11 @@ def __init__(self, raw=None): if 'autodetect' in raw and raw['autodetect'] is not None: self.auto_detect = raw['autodetect'] if 'socksProxy' in raw and raw['socksProxy'] is not None: - self.socksProxy = raw['socksProxy'] + self.socks_proxy = raw['socksProxy'] if 'socksUsername' in raw and raw['socksUsername'] is not None: - self.socksUsername = raw['socksUsername'] + self.socks_username = raw['socksUsername'] if 'socksPassword' in raw and raw['socksPassword'] is not None: - self.socksPassword = raw['socksPassword'] + self.socks_password = raw['socksPassword'] @property def proxy_type(self):