Skip to content

Instantly share code, notes, and snippets.

@joey-g
Created March 2, 2015 17:39
Show Gist options
  • Save joey-g/7b0906570646801514af to your computer and use it in GitHub Desktop.
Save joey-g/7b0906570646801514af to your computer and use it in GitHub Desktop.
Automation Training Week 4
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