The phantomjs.page.settings.* settings are passed in as part of the Capabilties object, so e.g. we now can change the user-agent like so:

  capabilities = Selenium::WebDriver::Remote::Capabilities.phantomjs("phantomjs.page.settings.userAgent" => "Custom Agent/1.0")
  Selenium::WebDriver.for :phantomjs, :desired_capabilities => capabilities