Thanks for your reply.
I don't think there is such method(ie.ie.stop)
My ruby version 1.8.6 and watir version is 1.6.2.
Is there any other soultion?



On Sat, Aug 8, 2009 at 12:28 AM, Michael Hwee <[email protected]>wrote:

>
> Try ie.ie.stop
>
>
>
> ----- Original Message ----
> From: Alex.Dev <[email protected]>
> To: Watir General <[email protected]>
> Sent: Friday, August 7, 2009 2:01:38 AM
> Subject: [wtr-general] stop ie from code
>
>
> 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 [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to