Practice free →
HomeSoftware TestingSoftware Testingtools_automation_cicd › Which is NOT a Selenium WebDriver locator strate…

Which is NOT a Selenium WebDriver locator strategy?

ABy ID of an element on page
BBy CSS selector for matching
CBy XPath expression for nodes
DBy RGB colour value of pixel
Answer & Solution
Correct answer: D. By RGB colour value of pixel
WebDriver locators: id, name, className, tagName, linkText, partialLinkText, cssSelector, xpath. Locating by pixel colour is NOT a WebDriver mechanism (it would require image processing, e.g., Sikuli).
Solve this in the app — Software Testing practice & 24k+ MCQs →
Related questions