Selenium java xpath locator hackerrank relativeXPath and absoluteXPath methods code example Example: relative xpath sample //input[@id=’user-message‘]