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

后端 未结 7 1256
慢半拍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:08

    The dom.max_script_run_time setting is in seconds. Changing it from 10 to 20 just doubles the amount of time to wait. A value of 0 will disable it, but this could result in a run-away script locking up your browser. You might just use a really large value.

    More details here:

    http://kb.mozillazine.org/Dom.max_script_run_time

提交回复
热议问题