Skip to content

Instantly share code, notes, and snippets.

@joselo
Created October 14, 2022 18:09
Show Gist options
  • Save joselo/23465860c2b620163247b99498462bbe to your computer and use it in GitHub Desktop.
Save joselo/23465860c2b620163247b99498462bbe to your computer and use it in GitHub Desktop.
Get the parent div of a child div with a title
container = find(".box-header", text: "E-Billing Information").first(:xpath, ".//..")
within(container) do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment