xpath with contains text code example
Example 1: contains text xpath
//*[contains(text(),'ABC')]
Example 2: xpath contains text
//button[contains(text(),"Go")]
Example 3: xpath id contains text
//div[contains(@id,'test')]
//*[contains(text(),'ABC')]
//button[contains(text(),"Go")]
//div[contains(@id,'test')]