I just know, there is a method, ie.text_field( ).focus, can focus the mouse
on the input box.
So, I find a way, which can cope your problem.
When you turn the special page, you don't need to know whether the focus is
on the text field, you just have to:
ie.send_keys("hello"), then tell from
if ie.text_field( ).value.eql?("hello")
do something, next step
else
do something other, next step
end

Expect it could help.

Thanks.
Wesley Chen.

--~--~---------~--~----~------------~-------~--~----~
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