Chapter 5

Cross-Cutting Concerns — quiz

5 questions · ~4 min

Chapter 5 quiz

Question 1 of 5

A TestNG suite runs 50 tests in parallel across 5 threads. All tests share a static `WebDriver driver` field. Tests are failing randomly with `StaleElementReferenceException` and `NoSuchSessionException`. What is the root cause and fix?