Skip to content

Commit

Permalink
[py] Correct service usage in IE Binding. Fixes #7749
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Mar 11, 2020
1 parent adce515 commit 35ed2da
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions py/selenium/webdriver/ie/webdriver.py
Expand Up @@ -89,14 +89,15 @@ def __init__(self, executable_path='IEDriverServer.exe', capabilities=None,
else:
# desired_capabilities stays as passed in
capabilities.update(options.to_capabilities())
if service is None:
service = Service()
self.iedriver = Service(
executable_path,
port=self.port,
host=self.host,
log_level=log_level,
log_file=service_log_path)
if service is not None:
self.iedriver = service
else:
self.iedriver = Service(
executable_path,
port=self.port,
host=self.host,
log_level=log_level,
log_file=service_log_path)

self.iedriver.start()

Expand Down

0 comments on commit 35ed2da

Please sign in to comment.