Is there a way to detect that I'm in a Selenium Webdriver page from JavaScript

前端 未结 5 752
无人共我
无人共我 2021-02-02 17:03

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.

<
5条回答
  •  耶瑟儿~
    2021-02-02 17:51

    You can try this answer to disable the navigator.webdriver variable, but notice that it's no longer from ChromeDriver 79.0.3945.16 and above.

提交回复
热议问题