- Selenium
- JMeter
- DevOps
- VERSION CTRL
- ONLINE QUIZ
- Number System MCQ - 1
- Number System MCQ - 2
- Number System MCQ - 3
- Simplification MCQ - 1
- Average MCQ - 1
- Simple Interest MCQ - 1
- Compound Interest - MCQ
- Percentage - MCQ
- Ratio and Proportion - MCQ
- Profit and Loss - MCQ
- Time, Speed, and Distance - MCQ
- Time, and Work - MCQ
- Boats and Streams - MCQ
- General Knowledge Quiz - Indian Polity
- General Knowledge Quiz - History
- General Knowledge Quiz - Geography
- GK Quiz - Indian Polity - 2
- GK Quiz - Banking and Finance
- GK Quiz - Economics
- GK Quiz- Merger and Acquisition
- GK Quiz- International Bodies
- English Grammar quiz-1
- English Grammar quiz-2
- S/W PROJECT MANAGEMENT
- PROTRACTOR
- Java -Tutorials
- MORE
XPath in selenium - quiz | XPath in selenium - MCQs
12 Multiple-choice questions on finding XPath in selenium. This quizlet contains questions on finding XPaths using various XPath axes and functions.
Also, check a series of other MCQs and quizzes on selenium webdriver and assess your proficiency in automation.
Instructions
Topic- xpath
The test consists of 12 questions.
No negative marking for this test.
No Time limit
The pass percentage is 70%
The correct answer with a description will be displayed after the answer has been marked.
Submit the test to calculate your score once you are done with all the questions.
Complexity Level- Moderate
Q1: Select the XPath that contains a valid operator:
Q2: @ in an XPath expression will _____
Q3: The wildcard asterisk (*) in an XPath expression will _____
Q4: //div[@class='abc']//following::li
Q5: The below expression will ______
//*
//*
Q6: The given xpath will search for:
//*[@class='abc']
//*[@class='abc']
Q7: The given XPath will search for which div tags?
//div[@class='container']//descendant::div
//div[@class='container']//descendant::div
Q8: Select the div tag/tags that will be searched by the below XPath:
//div[@class='container']/div[3]
//div[@class='container']/div[3]
Q9: Select the div tag/tags that will be searched by the below XPath:
//div[@class='inner']//child::div
//div[@class='inner']//child::div
Q10: Select the XPath that contains a valid logical operator:
Q11: The given XPath will search for which li tag/tags?
//ul[@class='navigation']/li[3]
//ul[@class='navigation']/li[3]
Q12: Select the correct XPath function to find the below-highlighted element.