Skip to content

Selenium Python Framework with Parallel Execution via behavex #177

Closed Answered by hrcorval
prasanmgc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @prasanmgc. We are using selenium in our project, and the fact is that you should create the selenium driver instance for every scenario in a test step that performs that action. The test scenarios should manage the selenium driver lifecycle, and within the environment.py module (maybe in the after_scenario hook) you can close the driver instance if it was previously created.
In this way, no matter if you run the tests in parallel at scenario of feature level, the execution will always work.
Also, have in mind that in general selenium does not always support multiple browser instances as is (I know it works for chrome in MacOs, but not for some other browsers), and the way to support m…

Replies: 1 comment

Comment options

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