Skip to content

Firefox headless #3780

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

Closed
jonalim opened this issue May 28, 2025 · 2 comments
Closed

Firefox headless #3780

jonalim opened this issue May 28, 2025 · 2 comments
Labels
can't reproduce We tried to see what you saw, but didn't duplicate The answer/solution already exists somewhere workaround exists You can reach your destination if you do this...

Comments

@jonalim
Copy link

jonalim commented May 28, 2025

Attempting to run Firefox in headless mode doesn't work. The only workaround I've found is to set environment variable MOZ_HEADLESS=1. Similar in behavior to: #1813

pytest -k test_basics --headless --browser=firefox

yields: stack_trace.txt

$ firefox --version
Mozilla Firefox 138.0.4
@mdmintz mdmintz added duplicate The answer/solution already exists somewhere workaround exists You can reach your destination if you do this... can't reproduce We tried to see what you saw, but didn't labels May 28, 2025
@mdmintz
Copy link
Member

mdmintz commented May 28, 2025

Not able to reproduce this, but since setting the environment variable MOZ_HEADLESS=1 works for you, I would just use that.
You can also try: pytest --firefox-arg="-headless", as mentioned in #1813 (comment).

@mdmintz mdmintz closed this as completed May 28, 2025
@jonalim
Copy link
Author

jonalim commented May 29, 2025

Not able to reproduce this, but since setting the environment variable MOZ_HEADLESS=1 works for you, I would just use that. You can also try: pytest --firefox-arg="-headless", as mentioned in #1813 (comment).

Thank you, that works too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't reproduce We tried to see what you saw, but didn't duplicate The answer/solution already exists somewhere workaround exists You can reach your destination if you do this...
Projects
None yet
Development

No branches or pull requests

2 participants