Selenium web element locating strategy using xpath.
Common xpath selector
- Absolute reference and child reference with “/”
- Relative reference and descendant reference with “//”
- Parent element with parent:: and ..
- Any element and any attribute
- Attribute and attribute value with “@”
- Multiple attributes or conditions
- Index with  and position()
- Child count with count(*)
BACK TO TOP