-
Notifications
You must be signed in to change notification settings - Fork 64
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
context fixture #44
Comments
i know pytest has context fixture,maybe it is you want |
Thanks but I'm looking for an example om how to use this:
|
yep its easier to manage this yourself. If you look at that fixture..
pretty simple, just need to close context when done so if creating a bunch for a test then need to keep track of em. This is what I am doing for example..
hope that helps :) |
Thanks for the example. Where do you create the browser ? In conftest.py ? |
you can import Browser Fixture which has session scope, so you dont need to create Browser so to say |
Hi,
I'm looking for an example on how to use the context fixture. My goal is to parametrize a test with different devices. Is this possible with the pytest-playwright plugin ?
The text was updated successfully, but these errors were encountered: