Carson Reinke's (🚗☀☔🔑) Blog

Watir and PhantomJS

  1. Run the phantomjs webdriver first: phantomjs --webdriver=8910
  2. $> driver = Selenium::WebDriver.for(:remote, :url => “http://localhost:8910”) => #<Selenium::WebDriver::Driver:0x..f5cf0fbae287ba00 browser=:phantomjs>  $> b = Watir::Browser.new driver => #  $> b.goto 'reinke.co' => "http://www.reinke.co/"

phantomjs - watir