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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -