xpath contains(text) code example
Example 1: contains text xpath
//*[contains(text(),'ABC')]
Example 2: xpath text
//tag[text()='sometext']
Example 3: xpath id contains text
//div[contains(@id,'test')]
Example 4: xpath contains text
//button[contains(text(),"Go")]
Example 5: xpath element that contains text
"//h4/a[contains(text(),'SAP M')]"