Selenium WebDriver tests with JavaScript disabled

后端 未结 4 1926
花落未央
花落未央 2020-12-06 07:23

One of our internal applications (written in angularjs) has a special error box appearing if javascript is disabled in the browser (using noscript), similar to the

4条回答
  •  伪装坚强ぢ
    2020-12-06 07:48

    As far as I understand (with the help of several points raised here), disabling javascript is killing the javascript webdriver itself. Is it true?

    Yes. Note that WebDriver itself runs as a Firefox extension, so its code isn't affected by you disabling JavaScript. However, the error message indicates that Selenium is attempting to run some code in the context of the webpage. For that it injects a

提交回复
热议问题