Created
January 13, 2011 07:06
-
-
Save jarib/777516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select = driver.find_element(:name => "select") | |
option = select.find_elements(:tag_name => "option").find { |o| o.text == "Name you want" } | |
raise "could not find the right option" if option.nil? | |
option.select | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment