Skills101
← All practice quizzes

Quiz: Locators

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

Every way to find an element in Selenium — id, name, className, tagName, linkText, CSS selectors and XPath — which to prefer, a CSS and XPath cheat sheet, and tested examples including tables and relative XPath.

Log in to take the quiz

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

  1. Question 1

    Which CSS selector finds an input whose type is email?

  2. Question 2

    Which XPath finds the marks cell next to the cell containing "Neha"?

  3. Question 3

    What can XPath do that CSS selectors cannot?

  4. Question 4

    Why avoid absolute XPath like /html/body/div[2]/form/input[1]?

  5. Question 5

    What is the most robust locator you can ask developers for?