开发者

Firefox: Disabling exit alert boxes?

开发者 https://www.devze.com 2022-12-19 10:20 出处:网络
Is it possibl开发者_如何学运维e to completely disable the JavaScript exit alert boxes that spring up when I try to leave the page?

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

精彩评论

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

关注公众号