Xpaths to identify elements on the UI. Below are some different ways to create Xpaths:
//div[@id='idvalue']
- //tag[@attribute='Value']
//div[@id='idvalue']
- //tag[contains(@attribute, attributepartialvalue)]
- //div[starts-with(@id,'partialvalue_')]
- //div[contains(text(), 'text value')] or //div[text()='value']
where text can be used to find the element
Comments
Post a Comment