Skip to content
Discussion options

You must be logged in to vote

Using this format: https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md#sb_sf_02 you can easily customize your tearDown() method. Set a variable in your tests that you will access in your tearDown() method to determine if you need to run custom code. (Eg. In a test: self.my_var = 1 ... In the tearDown(): if self.my_var == 1: ...)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
1 reply
@mdmintz
Comment options

Comment options

You must be logged in to vote
1 reply
@mdmintz
Comment options

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