xpath class which contains text code example
Example 1: contains text xpath
//*[contains(text(),'ABC')]
Example 2: xpath element that contains text
"//h4/a[contains(text(),'SAP M')]"
//*[contains(text(),'ABC')]
"//h4/a[contains(text(),'SAP M')]"