← All topics
Quiz: Selenium Setup: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Since Selenium 4.6, how do you usually get the browser driver?
- Q2. What is the difference between driver.close() and driver.quit()?
- Q3. Why run browsers in headless mode on a CI server?
- Q4. In TestNG's assertEquals(a, b), which argument is the actual value?
- Q5. What does findElements return when nothing matches?
- Q6. What does driver.get(url) do?
- Q7. driver.findElement(By.id("missing")) is called and no element matches. What happens?
- Q8. Which component sits between your Java test and the browser?
- Q9. Why should every test end by calling driver.quit(), usually in an @AfterMethod?
- Q10. Which method gives the address of the page currently open?