Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "watir-webdriver"
- # Create a Firefox profile and disabled JavaScript
- profile = Selenium::WebDriver::Firefox::Profile.new
- profile["javascript.enabled"] = false
- # Instantiate a browser instance using the profile you created above
- browser = Watir::Browser.new :firefox, :profile => profile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement