Skip to content

Instantly share code, notes, and snippets.

@BartlomiejSkwira
Created April 29, 2013 08:48
Show Gist options
  • Select an option

  • Save BartlomiejSkwira/5480450 to your computer and use it in GitHub Desktop.

Select an option

Save BartlomiejSkwira/5480450 to your computer and use it in GitHub Desktop.
Find sibling element in Capybara with XPath
find(:xpath, "//div[preceding-sibling::select[@id='sibling_id']]/input").set('test')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment