get xpath in selenium from element code example Example: relative xpath sample //input[@id=’user-message‘]