I'm having troubles with using PhantomJS with Watir-Webdriver. I have URLs with "http" scheme that return HTTP 301 Moved Permanently and redirect to a new "https" location. Two examples:
I wrote a script:
require 'watir-webdriver'
b = Watir::Browser.new :phantomjs, :args => ['--ignore-ssl-errors=true']
b.goto 'http://make.crowdflower.com'
puts b.title
puts b.url
b.close
The output is:
(empty line)
about:blank
The versions are: Ruby 2.1.0, watir-webdriver 0.6.11, phantomjs 1.9.7.
I wonder why is it happening. Any advice is much appreciated.