Reputation: 439
In some case we need to select input[@class="some"]
element, but only if div[@class="other"]
is not exist.
Both elements doesn't have common parent, except body
, of course.
As soon as results of our environment focused on XPath we need only XPath solution.
UPD: if element exists nothing should be returned
Upvotes: 3
Views: 2965