-
-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
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
How to make selenium-side-runner run headless? #300
Comments
|
Thank you! |
@corevo is there any way that I can use firefox headless? |
@limasigor2 This can be achieved by set the env MOZ_HEADLESS=1 before run selenium-side-runner It work but i didn't any further tests |
I rather figure out a way of doing it using the capabilities, so that the |
Thanks for the great tool. I have it doing exactly what I need - but - I've been unable to set the Chrome default download directory. I'm pretty sure it's a prefs settings, but I can't seem to find the right combination to make it work. Here is what I'm using:
I'd also be fine with setting this in a file somewhere, but I haven't been able to figure out how to use the side.yml file (format) for this. I'd appreciate any pointers Thanks! Bill |
@Yrds: Confirmed, the command MOZ_HEADLESS=1 selenium-side-runner -c "browserName=firefox" project.side works for me. Another way (found here) is selenium-side-runner -c "browserName=firefox moz:firefoxOptions.args=[-headless]" project.side Note there must be "-" in argument. BTW I tried some tests and must say that headless mode speeds up testing much more in Chrome than in Firefox. In Firefox there is almost no performance difference between headless and non-headless mode. |
When I run
What I do wrong? In non-headless mode tests are running fine. |
@vlad-bordei Run it with option $ selenium-side-runner -c "browserName=chrome chromeOptions.args=[disable-infobars, headless]" myproject.side |
Thanks @mirao It works. Thanks! |
I get the following error when I run this command on headless ubuntu 18 `Test suite failed to run
|
Headless from Chrome75: selenium-side-runner -c "goog:chromeOptions.args=[--headless,--nogpu] browserName=chrome" |
Meta -
OS: Windows 10
Selenium IDE Version: v3.2.0-beta.1
Selenium SIDE Runner Version: 3.2.0-beta.1
Node version: npm: 5.6.0, node: v8.11.3
Browser: Chrome
Browser Version:
Expected Behavior -
Is there a way to run selenium-side-runner headless?
Like:
Actual Behavior -
Steps to reproduce -
The text was updated successfully, but these errors were encountered: