9. Relative XPath & XPath Axes (following-sibling)

XPath Axes Guide

- //td[text()='Alice']/following-sibling::td/button (Finds button in column next to Alice) - //input[@id='email']/ancestor::form (Traverses up to form)

Task

  • Find the action button next to the cell with text `"Alice"` using `following-sibling::td/button`.
💡Common doubts
Did you like the problem?
Lesson 9 of 18
Java
Loading code editor…
Next