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']


















Q7: The given XPath will search for which div tags?

//div[@class='container']//descendant::div

descendant in XPath


















Q8: Select the div tag/tags that will be searched by the below XPath:

//div[@class='container']/div[3]

index in XPath


















Q9: Select the div tag/tags that will be searched by the below XPath:

//div[@class='inner']//child::div

child in XPath


















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]

indexing in XPath


















Q12: Select the correct XPath function to find the below-highlighted element.

function in XPath






























  • Join our telegram channel