🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Static fields are slower
  2. B.Tests on different threads would control the same browser and interfere
  3. C.TestNG forbids static fields
  4. 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 →