|
I use conftest.py about save my pytest fixture. How do it in the Selenium base? |
Answered by
mdmintz
Dec 9, 2022
Replies: 2 comments 4 replies
|
You can still use a |
2 replies
Answer selected by
mdmintz
|
If I use pytest and write my custom fixture in Page Class I must inheritance BaseCase? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can still use a
conftest.pyfile with SeleniumBase. Put it in the root folder when you run your tests.If you're trying to modify the existing
sbfixture, you can use the example from here: https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md#sb_sf_10(Eg. https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_override_sb_fixture.py)