js xpath contains text code example
Example 1: xpath contains text
//button[contains(text(),"Go")]
Example 2: xpath element that contains text
"//h4/a[contains(text(),'SAP M')]"
//button[contains(text(),"Go")]
"//h4/a[contains(text(),'SAP M')]"