????1.???ruby
????????ruby???????????????????????????cmd??????????????????????
????ruby -v
????2.???webdriver
???????????????????gem???????????????????????е????cmd????????????????????????????????
????gem install selenium-webdriver
??????????????????????????????????????????????????webdriver??汾??
????gem list selenium-webdriver
????3.???webdriver chrome????????
????webdriver??????firefox????????????????IE??chrome????????????????driver??????????????????chrome?????http://chromedriver.storage.googleapis.com/index.html???????????chromedriver.exe????ruby?????????????£?????????′???????????????????
????require 'selenium-webdriver'
????gc = Selenium::WebDriver.for:chrome
????gc.get "http://www.baidu.com"
????4.????
????????gem??????
????gem update --system