Selenium & Firefox: How can i turn off “Unresponsive script” warnings?

后端 未结 7 1187
慢半拍i
慢半拍i 2021-02-05 17:42

I\'m using Selenium Client 2.4.0 on Mac 10.6.6 with Firefox 5. Using the WebBackedSeleniumDriver, I\'m running a \"selenium.getEval\" command that causes a Firefox warning,

7条回答
  •  花落未央
    2021-02-05 18:01

    Regardless of what you have setup in your profile, during startup, Selenium sets both values to 2417483647 to try and get around the browser warning. However, because the value is so large, FF ends up ignoring it and using the default value of 10/20 instead. This is true even if you're pointing Selenium to use your profile as the template.

    The best way I've found to get around this is to specify -timeout nnnn

    to the Selenium Server startup args. This sets both the server and client (browser) timeout values.

提交回复
热议问题