Skip to content
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

--browser-channel="chrome" is passed to all browsers if multiple are used in a test run #79

Closed
bobylevd opened this issue Sep 27, 2021 · 2 comments
Labels

Comments

@bobylevd
Copy link

bobylevd commented Sep 27, 2021

Use case:
I want to run all tests with all browsers, and I want to run tests with Chrome instead of Chromium
to do that I'm using a combination of run parameters like:

pytest --browser=chromium --browser=firefox -browser=webkit --browser-channel=chrome

This yields errors like:
Unsupported firefox channel "chrome"
Unsupported webkit channel "chrome"

Possible solution for that would be to check what type of browser and browser-channel are passed in launch_browser fixture
#78

@mxschmitt
Copy link
Member

I would probably recommend you to run pytest multiple times with the correct parameters instead of running it a single time and a few parameters won't get passed over.

@mxschmitt
Copy link
Member

Closing since it's expected to pass the channel to all the browser when it's passed a single time. We recommend to run then pytest multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants