-
I use conftest.py about save my pytest fixture. How do it in the Selenium base? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can still use a |
Beta Was this translation helpful? Give feedback.
-
If I use pytest and write my custom fixture in Page Class I must inheritance BaseCase? |
Beta Was this translation helpful? Give feedback.
You can still use a
conftest.py
file with SeleniumBase. Put it in the root folder when you run your tests.If you're trying to modify the existing
sb
fixture, 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)