InterviewSolution
Saved Bookmarks
| 1. |
How will you retrieve certain properties from CSS to Selenium? |
|
Answer» To find the web element on the page, the CSS locator can be used. Syntax is - div[ID="id value"] > button[value="value text"]; selects the button with its value property set at value text if children of the id value are div PROS:
CONS:
Structure-Dependent Or Not? Locators are classified into two categories ie Structure-based locators and Attributes-based locators.
|
|