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