xpath examples Example to select using text and then to get following-sibling //*[text()[contains(.,'Days listed')]] //*[text()[contains(.,'Days listed')]]//following-sibling::div