Skip to content

Instantly share code, notes, and snippets.

@hzmangel
Created July 12, 2013 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hzmangel/5980431 to your computer and use it in GitHub Desktop.
Save hzmangel/5980431 to your computer and use it in GitHub Desktop.
Enable javascript on remote selenium browser
require 'watir-webdriver'
require 'selenium/server'
include Selenium
caps = WebDriver::Remote::Capabilities.htmlunit(:javascript_enabled => true)
@browser = Watir::Browser.new(:remote, :url => 'http://127.0.0.1:4444/wd/hub', :desired_capabilities => caps)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment