Skip to content

Instantly share code, notes, and snippets.

@rohinomiya
Created June 9, 2012 08:35
Show Gist options
  • Save rohinomiya/2900141 to your computer and use it in GitHub Desktop.
Save rohinomiya/2900141 to your computer and use it in GitHub Desktop.
Watir でIEやGoogle Chromeを自動操縦する ref: http://qiita.com/items/389d75daa97e9d2275cc
gem update --system
gem install watir
gem install watir-webdriver
<div class="goog-inline-block goog-toolbar-button" id=":f" roll="button">
browser.div(:class,"goog-inline-block goog-toolbar-button").click
browser.div(:id => ":f").click
#require "watir" # for IE
require "watir-webdriver" # for Firefox/Chrome
#browser = Watir::IE.new
browser = Watir::Browser.new :chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment