ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
C:\Documents and Settings\takashi>gem install watir-webdriver
Fetching: json_pure-1.6.1.gem (100%)
Fetching: rubyzip-0.9.4.gem (100%)
Fetching: ffi-1.0.9-x86-mingw32.gem (100%)
Fetching: childprocess-0.2.2.gem (100%)
Fetching: selenium-webdriver-2.9.0.gem (100%)
Fetching: watir-webdriver-0.3.5.gem (100%)
Successfully installed json_pure-1.6.1
Successfully installed rubyzip-0.9.4
Successfully installed ffi-1.0.9-x86-mingw32
Successfully installed childprocess-0.2.2
Successfully installed selenium-webdriver-2.9.0
Successfully installed watir-webdriver-0.3.5
6 gems installed
Installing ri documentation for json_pure-1.6.1...
Installing ri documentation for rubyzip-0.9.4...
Installing ri documentation for ffi-1.0.9-x86-mingw32...
Installing ri documentation for childprocess-0.2.2...
Installing ri documentation for selenium-webdriver-2.9.0...
Installing ri documentation for watir-webdriver-0.3.5...
Installing RDoc documentation for json_pure-1.6.1...
Installing RDoc documentation for rubyzip-0.9.4...
Installing RDoc documentation for ffi-1.0.9-x86-mingw32...
Installing RDoc documentation for childprocess-0.2.2...
Installing RDoc documentation for selenium-webdriver-2.9.0...
Installing RDoc documentation for watir-webdriver-0.3.5...
http://code.google.com/p/chromium/downloads/list から
chromedriver_win_16.0.902.0.zipをdownloadして展開する。
chromedriver.exeをc:\ruby\ruby192\bin\の下に入れる。
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
C:\Documents and Settings\takashi>irb
irb(main):001:0> require 'watir-webdriver'
=> true
irb(main):002:0> browser = Watir::Browser.new(:chrome)
Started ChromeDriver
port=1107
version=16.0.902.0
=> #
irb(main):003:0> browser.goto("http://google.com")
=> "http://www.google.co.jp/"
irb(main):004:0>
0 件のコメント:
コメントを投稿