Skills101
← All practice quizzes

Quiz: Selenium Setup

5 questionsNo time limitPass: 60%+10 XP on first pass

How Selenium WebDriver controls a browser, setting up a Maven project with Selenium 4 and TestNG, Selenium Manager (no manual driver downloads), headless Chrome, and a first login test that passes.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Since Selenium 4.6, how do you usually get the browser driver?

  2. Question 2

    What is the difference between driver.close() and driver.quit()?

  3. Question 3

    Why run browsers in headless mode on a CI server?

  4. Question 4

    In TestNG's assertEquals(a, b), which argument is the actual value?

  5. Question 5

    What does findElements return when nothing matches?