Advertisement
Guest User

Untitled

a guest
May 28th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. require "watir-webdriver"
  2.  
  3. # Create a Firefox profile and disabled JavaScript
  4. profile = Selenium::WebDriver::Firefox::Profile.new
  5. profile["javascript.enabled"] = false
  6.  
  7. # Instantiate a browser instance using the profile you created above
  8. browser = Watir::Browser.new :firefox, :profile => profile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement