Skip to content

Instantly share code, notes, and snippets.

@altherlex
Created March 27, 2015 10:53
Show Gist options
  • Save altherlex/8da93579f45e1b319191 to your computer and use it in GitHub Desktop.
Save altherlex/8da93579f45e1b319191 to your computer and use it in GitHub Desktop.
Gem Watir for automating test
# 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