require 'rubygems'
require 'safariwatir'

browser = Watir::Safari.new
browser.goto("http://google.com")
browser.text_field(:name, "q").set("vk")
browser.button(:name, "btnI").click
# puts "Done" unless browser.contains_text("vk")