ruby - Disable Javascript for Chrome using Capybara Selenium -
i'm wondering if there way disable javascript tests using selenium-webdriver in chrome capybara.
i have following:
capybara.register_driver :selenium |app| opts = selenium::webdriver::chrome::options.new opts.add_argument '--start-maximized' opts.add_argument '--disable-infobars' opts.add_argument '--disable-features' capybara::selenium::driver.new(app, browser: :chrome, options: opts) end capybara.default_driver = :selenium
but don't think --disable-javascript
works now.
i've tried find alternative no joy.
would have solution?
Comments
Post a Comment