We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As with Chrome, I want to be able to start Firefox in headless mode.
Can't find any method similar to the ChromeOptions->addArguments(); Can I use setPreference()?
// You can insert your PHP code here (or remove this block if it is not relevant for the issue).
The text was updated successfully, but these errors were encountered:
Possible solution: Use export MOZ_HEADLESS=1 before running selenium.
export MOZ_HEADLESS=1
Sorry, something went wrong.
Hi, I believe you can pass the settings via desired capabilities:
$capabilities = DesiredCapabilities::firefox(); $capabilities->setCapability( 'moz:firefoxOptions', ['args' => ['-headless']] ); $driver = RemoteWebDriver::create($host, $capabilities);
@olleharstedt Could you please try this solution as well? I will add it to the wiki then.
Thanks, I'll try this.
I can confirm this works.
Thank you!
No branches or pull requests
What are you trying to achieve? (Expected behavior)
As with Chrome, I want to be able to start Firefox in headless mode.
What do you get instead? (Actual behavior)
Can't find any method similar to the ChromeOptions->addArguments(); Can I use setPreference()?
How could the issue be reproduced? (Steps to reproduce)
// You can insert your PHP code here (or remove this block if it is not relevant for the issue).
Details
The text was updated successfully, but these errors were encountered: