Object identification is an important process in automation testing. If the correct element is not identified, action can be performed on an incorrect element or no action can be performed at all.
User interfaces will change by just a couple pixels, a text field or button might not be ready when the test starts accessing it. Getting consistently useful results is tough, but focusing on an object recognition strategy can get you closer.
Object can be found by various locators :
Id
Name
Link text
Partial Linktext
Tag Name
Class Name
Dom
Css
Xpath
Label
ClosestLabel
Placeholder
Text
Prerequisites :
- User should have basic knowledge about locators to create locator properties if required.
Related articles
Filter by label (Content by label)