Practical Task. Locators
Practical Task. Locators
Program
• ID locator
• Name locator
• ClassName locator
• TagName locator
• LinkText locator
• PartialLinkText locator
• CSS locator (if possible, use pseudo-classes)
• XPath locator (Relative path)
• XPath locator with any operator
• XPath locator with axes
Element Locator
“Search” input #search
… …
Test Cases
Test case #1. Validate that the user can search for a position based on criteria.
1. Navigate to https://www.epam.com/
2. Find a link “Carriers” and click on it
3. Write the name of any programming language in the field “Keywords” (should be
taken from test parameter)
4. Select “All Locations” in the “Location” field (should be taken from the test
parameter)
5. Select the option “Remote”
6. Click on the button “Find”
7. Find the latest element in the list of results
8. Click on the button “View and apply”
9. Validate that the programming language mentioned in the step above is on a page