I can't get focus to do anything. In fact, whenever I try to use it I
get an error.
It should be as easy as something like this right?
$ie = IE.new
$ie.goto("http://www.google.com")
$ie.focus()
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Tuesday, September 20, 2005 11:17 AM
To: [email protected]
Subject: Re: [Wtr-general] Focus Issue
At 07:11 PM 9/19/2005, Keith Kaminski wrote:
>Anyway, I am having a problem right now with window focus. I m writing
>test scripts and executing them from the cmd console by invoking the
>appropriate .rb file. The problem is that the focus of window doesn t
>shift from the command prompt to the new IE window. This isn t a
problem
>for most of the tests I ve written so far, but it does screw up
Javascript
>dialog boxes. The WindowHelper doesn t seem to know that my javascript
>dialog boxes exist unless the focus is on the IE window. If I manually
>click on the window prior to the point where I need to click OK in my
>javascript dialog box, it works fine. I can t count on the ability to
do
>this during automated testing, however. Any help would be appreciated.
Did you try ie.focus?
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general