Carson Reinke's Headshot

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 => #<Watir::Browser:0x4a8a6ee2cae900d8 url=”about:blank” title=””>  $> b.goto ‘reinke.co’ => “http://www.reinke.co/”

phantomjs - watir