title: Is there a way to detect that I'm in a Selenium Webdriver page from JavaScript
body: <p>I'd like to suppress the initialization of <a href="https://www.tiny.cloud/" rel="nofollow noreferrer">TinyMCE</a> inside my tests and can do this easily if the JavaScript can detect that I'm running inside a Selenium-automated page.</p>
  <p>So, is there some JavaScript code that I can use to detect the Selenium driver? Alternatively, how can I extend the userAgent string to include a pattern that I can detect from JavaScript?</p>
  <p>If it really matters, I'm running this through <a href="https://duckduckgo.com/html/?q=Wikipedia%20cucumber" rel="nofollow noreferrer">Cucumber</a> and <a href="https://en.wikipedia.org/wiki/Capybara_(software)" rel="nofollow noreferrer">Capybara</a> on Mac OS X.</p>