Skip to content

Instantly share code, notes, and snippets.

@llaskin
Created February 23, 2012 14:50
Show Gist options
  • Save llaskin/1893156 to your computer and use it in GitHub Desktop.
Save llaskin/1893156 to your computer and use it in GitHub Desktop.
budget_pools = $browser.find_elements(:css, "X") #finds 5 elements
budget_pools.each{|pool| #pool is an "element"
if(pool.find_element(:css, "Y").text == name)
@bpool = pool
end
return @bpool.find_element(:css, "Z").text
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment