Home | Mirror | Search |
目錄
Install Ruby on Linux
sudo apt-get install ruby # for Ubuntu / Debian users sudo yum install ruby # for Red Hat / Fedora users
Update RubyGems
sudo apt-get install rubygems # for Ubuntu / Debian users sudo yum install rubygems # for Red Hat / Fedora users
Install Watir
gem update --system --no-rdoc --no-ri gem install watir --no-rdoc --no-ri
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-4218-b75d-b8856fced535
如果僅僅安裝Firefox測試環境:
sudo gem install firewatir Successfully installed firewatir-1.8.0 1 gem installed Installing ri documentation for firewatir-1.8.0... Installing RDoc documentation for firewatir-1.8.0...
JSSH for Firefox:
http://wiki.openqa.org/display/WTR/FireWatir+Installation
test jssh
$ firefox -jssh $ telnet localhost 9997
@browser = Watir::Browser.new(:chrome) @browser.goto "http://google.com"