Re: [Wtr-general] bring_to_front for window without a title
I found out that you can do ie.document.focus and that brings the window to the front but that seems like a hackish way of doing it. Anyone know a better solution? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6572messageID=18737#18737 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] bring_to_front for window without a title
Thanks Bret, I guess I'll go with that then. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6572messageID=18739#18739 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] bring_to_front for window without a title
wouldnt autoit use the empty title ( Microst Internet Explorer or something ) if you didnt specify a title element? but now I realise you probably have several windows. Is there something in the winclicker that works on hwnd? Paul - Original Message - From: Bach Le [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Thursday, February 15, 2007 11:07 AM Subject: [Wtr-general] bring_to_front for window without a title I'm writing a test for a page that does not have a title. The IE window only has the url, however, IE.bring_to_front uses AutoIt's WinActivate function to bring the window to front but AutoIt can only bring a window to the front if a title is specified. Anyone know how I can do it? I thought about sending Alt+Tab until IE.front? is true but looking at the front? code, it uses AutoIt again to check the page status via the title so dead end again. P.S. This is not a page I own so I cannot simply add a title if you're thinking about fixing it that way. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6572messageID=18736#18736 ___ 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
Re: [Wtr-general] bring_to_front for window without a title
Paul, I looked at the documentation for AutoIt but it seems like all of the functions rely on matching the titles in order to interact with the window. The only references that i saw for using HWND was the WinClose or something. -Bach - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6572messageID=18747#18747 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general