xpath by class code example
Example 1: xpath contains text
//button[contains(text(),"Go")]
Example 2: how to mention a div with class in xpath
button[@type='submit']
button[@class='btn btn-success']
button[@type='submit'][@class='btn btn-success']
Example 3: how to mention a div with class in xpath
button[type='submit']
button[class='btn btn-success']
button[type='submit'][class='btn btn-success']