.//*[preceding::*[text()='Taco Salad'] and following::*[text()='Fajita Salad']]
I have text on this page and both queries for .//*[text()='Taco Salad']
and .//*[text()='Fajita Salad']
return what I expected. But I am a bit confused how to try to combine these with following and preceeding to grab some of the options nodes that present in the middle.
Does anyone have any working examples of using two axes?
I found this thread: combining XPATH axes (preceding-sibling & following-sibling) and tried to model my axes after it, but they don't seem to be valid xapths. Am I missing something obvious?