Skip to content

PyTest-BDD and SeleniumBase #811

Answered by mdmintz
kennedylunar asked this question in Q&A
Discussion options

You must be logged in to vote

@kennedylunar

  1. Not sure about pytest-bdd; that's a completely different library.
  2. That's two different tests you have there, and the second one will fail because only the first test navigates to the page that you want. However, if you run tests with the --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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kennedylunar
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