I tried to open a very slowly website, i want to stop it(like click stop button in toolbar, but i need to do this from code) when it's readState is interactive.
here is my code snippets: require 'rubygems' require 'watir' require 'watir/ie' ie = Watir::IE.new ie.speed =:fast @thread = Thread.new do loop { sleep 0.5 if (ie.document.readyState =~ /interactive/) #stop ie and break the loop, now the problem is how to complete the code #like ie.abort, but there is no this method. end } end ie.goto 'http://www.flickr.com/' Regards, Alex.Dev --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---