I\'d like to suppress the initialization of TinyMCE inside my tests and can do this easily if the JavaScript can detect that I\'m running inside a Selenium-automated page.
Here's how to do it with Capybara and Chromedriver:
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome,
args: ['--user-agent="Chrome under Selenium for Capybara"'] )
end