[Wtr-general] How to make IE as active windows and capture it?

Charley Baker charley.baker at gmail.com
Fri Apr 6 10:05:12 EDT 2007


The bring to front method acts on the window title. If there's no window
title (you haven't navigated anywhere yet) then it won't bring the window to
the front.

-Charley

On 4/6/07, Jason He <Jason.He at resilience.com> wrote:
>
>  Yes, thank you for your help.
>
>
>
> I find if ie.bring_to_front is before ie.goto(), then the window console
> will be brought in front.
>
> And if it is after ie.goto() just as you write, then the ie window will be
> brought in the front.
>
>
>
> Can anyone explain what the difference between those two is?
>
>
>
> Regards,
>
> Jason
>
>
>  ------------------------------
>
> *From:* wtr-general-bounces at rubyforge.org [mailto:
> wtr-general-bounces at rubyforge.org] *On Behalf Of *Charley Baker
> *Sent:* 2007年4月5日 1:35
> *To:* wtr-general at rubyforge.org
> *Subject:* Re: [Wtr-general] How to make IE as active windows and capture
> it?
>
>
>
> ie = IE.new
> ie.goto('http://www.google.com' <http://www.google.com%27>)
> ie.bring_to_front
>
> -Charley
>
> On 4/4/07, *Jason He* <Jason.He at resilience.com> wrote:
>
> Dear all,
>
>
>
> I use a batch script in Windows command prompt (console) to start ruby
> scripts, when capture the active window using screen_capture("test.jpg",
> true), it will capture the console window rather than the Internet Explorer,
> how to make IE as active window and bring it forward by watir/ruby script?
>
>
>
> Regards,
>
> Jason
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070406/406db61c/attachment-0001.html 


More information about the Wtr-general mailing list