1

I need to pass --no-remote to the Firefox started through Selenium in Python. Is there a way to specify command line arguments?

1 Answer 1

4

You can provide arguments using FirefoxBinary.add_command_line_options():

from selenium.webdriver.firefox.firefox_binary import FirefoxBinary

binary = FirefoxBinary('/path/to/firefox')
binary.add_command_line_options('--no-remote')
driver = webdriver.Firefox(firefox_binary=binary)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.