Skip to content

How to use executable_path like original selenium python #1761

Answered by mdmintz
zaingithub asked this question in Q&A

You must be logged in to vote

To set the browser executable path (Chrome binary location), you can use a command-line option when you run pytest:
--binary-location=PATH

Example:

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

The options are similar, but different. (See https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/plugins/pytest_plugin.py)

Replies: 4 comments 7 replies

You must be logged in to vote
0 replies
Answer selected by mdmintz

You must be logged in to vote
3 replies
@mdmintz

@zaingithub

@mdmintz

You must be logged in to vote
3 replies
@mdmintz

@JaveriaButt

@mdmintz

You must be logged in to vote
1 reply
@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
4 participants