← Quiz: Automation Interview Questions: all 10 questions
Quiz: Automation Interview Questions · Question 3 of 10
Why must parallel Selenium tests not share a static WebDriver?
Why must parallel Selenium tests not share a static WebDriver?
- A.Static fields are slower
- B.Tests on different threads would control the same browser and interfere
- C.TestNG forbids static fields
- D.Browsers can't run in parallel
Answer & explanation
Correct answer: Tests on different threads would control the same browser and interfere
One driver per test (or per thread).
Can you get the rest right without peeking?
Take the timed Quiz: Automation Interview Questions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →