Skip to content

Browser Driver issues in WSL #1723

Answered by mdmintz
agarwalshashwat asked this question in Q&A
Discussion options

You must be logged in to vote

That error means that SeleniumBase can't find Chrome on your system. (Not the driver).

If Chrome isn't located at the usual location, you can change where SeleniumBase looks for it: #1709
(for seleniumbase 4.12.3 or newer)

Example:

pytest test_demo_site.py --binary-location="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

Also as an option for other Syntax Formats:

from seleniumbase import Driver
from seleniumbase import js_utils
from seleniumbase import page_actions

driver = Driver(browser="chrome", binary_location="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")
try:
    driver.get("https://seleniumbase.io/apps/calculator")
    page_actions.wait_for_element(d…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants