selenium.cr icon indicating copy to clipboard operation
selenium.cr copied to clipboard

Firefox: Allow to specify the custom location to Firefox binary

Open miry opened this issue 1 year ago • 0 comments

Sample code:

capabilities = Selenium::Firefox::Capabilities.new
capabilities.firefox_options.args = [
  "--headless"
]
capabilities.firefox_options.binary = "/Applications/Firefox\ Developer\ Edition.app/Contents/MacOS/firefox"
driver.create_session(capabilities)

References: https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions

miry avatar Mar 11 '24 19:03 miry