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

Python Edge driver; Cannot find MSEdge binary #16

Closed
spyoungtech opened this issue Jun 13, 2020 · 3 comments
Closed

Python Edge driver; Cannot find MSEdge binary #16

spyoungtech opened this issue Jun 13, 2020 · 3 comments

Comments

@spyoungtech
Copy link

Using the example code provided in the README, I receive the error WebDriverException: Message: unknown error: cannot find MSEdge binary

Edge version: Version 84.0.522.15 (Official build) beta (64-bit) (and corresponding webdriver)
Python version: 3.8
msedge-selenium-tools==3.141.1
selenium==3.141.0

Code to reproduce:

from msedge.selenium_tools import Edge, EdgeOptions

webdriver_location = "C:\\Path\\To\\msedgedriver.exe"

options = EdgeOptions()
options.use_chromium = True
driver = Edge(options=options, executable_path=webdriver_location)

My only thought is perhaps that this doesn't work with the beta build?

@spyoungtech
Copy link
Author

Fixed by adding the following

options.binary_location=r'C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe'

:)

@Duquee
Copy link

Duquee commented Sep 20, 2020

(WSL2)
Hey, I feel like I recreated the error you were having but for me your fix isn't working

webdriver_location = '/mnt/c/WebDriver/bin/msedgedriver.exe' options = EdgeOptions() options.use_chromium = True options.binary_location = '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'

webdriver_location = 'C\\WebDriver\\bin\\msedgedriver.exe' options = EdgeOptions() options.use_chromium = True options.binary_location = 'C\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe'

I have tried both ways and none works, and i have all of those folder in path.

Error:
´selenium.common.exceptions.WebDriverException: Message: 'C\WebDriver\bin\msedgedriver.exe' executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687´

@Mch-Kuzyk
Copy link

(WSL2)
Hey, I feel like I recreated the error you were having but for me your fix isn't working

webdriver_location = '/mnt/c/WebDriver/bin/msedgedriver.exe' options = EdgeOptions() options.use_chromium = True options.binary_location = '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'

webdriver_location = 'C\\WebDriver\\bin\\msedgedriver.exe' options = EdgeOptions() options.use_chromium = True options.binary_location = 'C\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe'

I have tried both ways and none works, and i have all of those folder in path.

Error:
´selenium.common.exceptions.WebDriverException: Message: 'C\WebDriver\bin\msedgedriver.exe' executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687´

Thank you, your variant works in Edge Can v,87.0.656.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants