Created
March 2, 2015 17:39
-
-
Save joey-g/7b0906570646801514af to your computer and use it in GitHub Desktop.
Automation Training Week 4
This file contains hidden or 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
require 'selenium-webdriver' | |
begin | |
driver = Selenium::WebDriver.for :chrome | |
driver.get 'http://google.com' | |
search_input_field = driver.find_element(:id => 'lst-ib') # Returns an instance/object of the WebElement class. | |
search_input_field.send_keys('Ryan Buff') | |
ensure | |
driver.quit | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment