diff --git a/py/selenium/webdriver/phantomjs/service.py b/py/selenium/webdriver/phantomjs/service.py index 8e77ef5eebbed..bf7a57b854a3d 100755 --- a/py/selenium/webdriver/phantomjs/service.py +++ b/py/selenium/webdriver/phantomjs/service.py @@ -44,6 +44,8 @@ def __init__(self, executable_path, port=0, service_args=None, log_path=None): self.port = utils.free_port() if self.service_args is None: self.service_args = [] + else: + self.service_args=service_args[:] self.service_args.insert(0, self.path) self.service_args.append("--webdriver=%d" % self.port) if not log_path: