Reputation: 6064
I wrote the following XPath:
//li[.//span[text()='Owner']]//span[text()='Add']
However, WATIR/Selenium reports that the element is invisible. Interestingly, when I use //span[text()='Add']
, it works fine. Both XPaths points to the same span when I am checking via developer tools. What could be causing this discrepancy?
Upvotes: 0
Views: 81