Skip to content

Commit

Permalink
Fix Safari webdriver AttributeError for python client driver #5578
Browse files Browse the repository at this point in the history
Signed-off-by: Alexei Barantsev <[email protected]>
  • Loading branch information
mingeth authored and barancev committed Mar 13, 2018
1 parent a8d9b86 commit 2a0f63d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/selenium/webdriver/safari/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
from .service import Service


class WebDriver(RemoteWebDriver):
Expand All @@ -45,6 +46,7 @@ def __init__(self, port=0, executable_path="/usr/bin/safaridriver", reuse_servic
"""

self._reuse_service = reuse_service
self.service = Service(executable_path, port=port, quiet=quiet)
if not reuse_service:
self.service.start()

Expand Down

0 comments on commit 2a0f63d

Please sign in to comment.