开发者

Firefox: Disabling exit alert boxes?

Is it possibl开发者_如何学运维e to completely disable the JavaScript exit alert boxes that spring up when I try to leave the page?

I'm running Firewatir on Ubuntu.


Are you able to use Greasemonkey scripts while using Firewatir? If so, then the BlockUnloadEvents script might do the trick:

http://userscripts.org/scripts/show/23865


Maybe you could find some help here:

  • http://github.com/bret/watir/blob/master/firewatir/unittests/javascript_test.rb
  • http://github.com/bret/watir/tree/master/firewatir/unittests/
  • http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
  • http://wiki.openqa.org/display/WTR/Pop+Ups

If not, post the question at http://groups.google.com/group/watir-general/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜