Created
March 27, 2015 10:53
-
-
Save altherlex/8da93579f45e1b319191 to your computer and use it in GitHub Desktop.
Gem Watir for automating test
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
# encoding: UTF-8 | |
#http://watir.com/ | |
#https://github.com/watir/watir/ | |
require 'rubygems' | |
require "watir" | |
teste_site = "http://blogsearch.google.com.br/" | |
browser = Watir::IE.new | |
browser.goto teste_site | |
TERMO = 'marcelinho pitbull' | |
browser.text_field(:name, "q").set TERMO | |
browser.button(:name, "btnG").click |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment