Skip to content

How to use executable_path like original selenium python #1761

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

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

Comment options

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

You must be logged in to vote
3 replies
@mdmintz
Comment options

@zaingithub
Comment options

@mdmintz
Comment options

Comment options

You must be logged in to vote
3 replies
@mdmintz
Comment options

@JaveriaButt
Comment options

@mdmintz
Comment options

Comment options

You must be logged in to vote
1 reply
@mdmintz
Comment options

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