We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
my code: from selenium import webdriver
driver = webdriver.Ie(executable_path='IEDriverServer.exe') driver.get('http://www.baidu.com') driver.switch_to.new_window('tab') handles = driver.window_handles driver.switch_to.window(handles[-1]) driver.get('http://www.google.com')
Traceback (most recent call last): File "e:\Dropbox\17.Develop\2.Code\08.网络\selenium\selenium01.py", line 3, in driver = webdriver.Ie(executable_path='IEDriverServer.exe') File "E:\Dropbox\17.Develop\2.Code\08.网络\selenium\env\lib\site-packages\selenium\webdriver\ie\webdriver.py", line 91, in init service = Service() TypeError: init() missing 1 required positional argument: 'executable_path'
OS: Browser: IE Browser version: 11 Browser Driver version: Language Bindings version: python 3.8.1 Selenium Grid version (if applicable): selenium-4.0.0a1
The text was updated successfully, but these errors were encountered:
Duplicate of #7749
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
🐛 Bug Report
my code:
from selenium import webdriver
driver = webdriver.Ie(executable_path='IEDriverServer.exe')
driver.get('http://www.baidu.com')
driver.switch_to.new_window('tab')
handles = driver.window_handles
driver.switch_to.window(handles[-1])
driver.get('http://www.google.com')
To Reproduce
Traceback (most recent call last):
File "e:\Dropbox\17.Develop\2.Code\08.网络\selenium\selenium01.py", line 3, in
driver = webdriver.Ie(executable_path='IEDriverServer.exe')
File "E:\Dropbox\17.Develop\2.Code\08.网络\selenium\env\lib\site-packages\selenium\webdriver\ie\webdriver.py", line 91, in init
service = Service()
TypeError: init() missing 1 required positional argument: 'executable_path'
Environment
OS:
Browser: IE
Browser version: 11
Browser Driver version:
Language Bindings version: python 3.8.1
Selenium Grid version (if applicable): selenium-4.0.0a1
The text was updated successfully, but these errors were encountered: