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 <[EMAIL PROTECTED]> 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:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Charley Baker *Sent:* 2007年4月5日 1:35 *To:* wtr-general@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* <[EMAIL PROTECTED]> 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@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general