Skip to content
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

TypeError: __init__() missing 1 required positional argument: 'executable_path' #8128

Closed
jasonyun opened this issue Mar 23, 2020 · 2 comments
Labels

Comments

@jasonyun
Copy link

🐛 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

@AutomatedTester
Copy link
Member

Duplicate of #7749

@AutomatedTester AutomatedTester marked this as a duplicate of #7749 Mar 27, 2020
@lock
Copy link

lock bot commented May 5, 2020

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.

@lock lock bot locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants