xpath using text code example
Example 1: xpath text
//tag[text()='sometext']
Example 2: xpath contains text
//button[contains(text(),"Go")]
Example 3: relative xpath sample
//input[@id=’user-message‘]
//tag[text()='sometext']
//button[contains(text(),"Go")]
//input[@id=’user-message‘]