-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
safari Webdriver() throws AttributeError with default arguments for python client driver #5578
Comments
pull request created at branch python-safari-webdriver-defaultargs |
Signed-off-by: Alexei Barantsev <barancev@gmail.com>
PR merged as 2a0f63d |
Sorry, is this fixed in later version of Selenium? I bump into the same problem here. OS: MacOS 10.13.4 cd /usr/bin
ls | grep safari
# safaridriver
safaridriver --enable from selenium import webdriver
webdriver.Safari()
# AttributeError: 'WebDriver' object has no attribute 'service'
webdriver.Safari(executable_path='/usr/bin/safaridriver')
# AttributeError: 'WebDriver' object has no attribute 'service' The traceback I get is exactly the same with @mingeth's. |
It is fixed in the trunk and will be in the next release |
OS: MacOS 10.13.4 Hi, is this solved and release updated yet? I get the same error as @mingeth and @corytu File ".../selenium/webdriver/safari/webdriver.py", line 49, in init |
@suchau3 Please see @lmtierney's comment right above yours.
|
@suchau3 @corytu the patch is a two liner -- not difficult to fix on your local. |
how do we fix this locally? i am new to this. |
Me too, can someone please help |
You need to go to the directory where is saved your webdriver.py for Safari. |
I get more errors after that, specifically which 2 lines should be appended and on which part of web driver.py |
@swissbeats93 look higher up in the thread and you will see the PR merged commit ( |
Meta -
OS: linux
Selenium Version: 3.10.0
Browser: Safari/Version 11.0.3 (13604.5.6)
Expected Behavior -
launching webdriver.Safari() from python with default arguments should create a safaridriver instance
Actual Behavior -
AttributeError: 'WebDriver' object has no attribute 'service'
Steps to reproduce -
The text was updated successfully, but these errors were encountered: