Forum Discussion
rraghvani
2 years agoChampion Level 3
From what's mentioned here Finding Web Objects Using XPath Expressions, in Tips on Using XPath Expressions, "To search the entire web page for elements, put a double slash (//) at the beginning of the XPath expression".
Since you are searching for,
//input[@id=(//label[contains(.,'Key')]/@for)]
it will match the first item it finds.
- pkudrys2 years agoContributorHi,
Thank you for the reply. Well, I was under the impression, that if a mapped element is a child of another mapped element, the xpath of searched element is a combination of parent and child element? So in this particular case, the child element should be searched in the sidenav panel, which is a parent element?