PyTest-BDD and SeleniumBase #811
Answered
by
mdmintz
kennedylunar
asked this question in
Q&A
-
Hello, I am trying to do the SeleniumBase together with pytest-bdd, but when i do something like this: I tried running a single step 'Given' on the console it is running 2 test even though it is a single step but it is running. Then I do a 'Given' and 'When' then it could not detect the bdd format. Another thing is if I call sb in 2 different methods those it mean that I am running 2 different tests already?
|
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Feb 13, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kennedylunar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kennedylunar
--reuse-session
/--rs
arg, it will keep the same browser window open for all tests, so your code would work in that specific case. Keep in mind, the tests will run in alphabetical order, unless you use pytest-ordering to select the exact order of tests.