xpath contains text in appium code example Example 1: contains text xpath //*[contains(text(),'ABC')] Example 2: xpath id contains text //div[contains(@id,'test')]