Skip to content

Instantly share code, notes, and snippets.

@dimacus
Created September 25, 2014 15:36
Show Gist options
  • Save dimacus/097a6c96953dae22ac13 to your computer and use it in GitHub Desktop.
Save dimacus/097a6c96953dae22ac13 to your computer and use it in GitHub Desktop.
trs = selenium.find_elements(:css, "tr");
trs.each -> tr #Storing current loop var in tr
tds = tr.find_elements(:css, "td");
if tds[1] == "user-x"
trs[5].click
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment