Skip to content

Is there a way to skip teardown for each test? #1228

Answered by mdmintz
varun-pandurangi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @varun-pandurangi You can reuse the browser session by adding --reuse-session or --rs to your pytest run command. That will keep the same session open for all tests. If you want to close the session between different classes of tests, use --reuse-class-session or --rcs.

For SeleniumBase as a pytest fixture, see syntax formats 3 and 4 from https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants