SendKey focus missing in IE 7

5 views
Skip to first unread message

Prince3105

unread,
Oct 9, 2009, 8:46:11 AM10/9/09
to Watir General
Hi All,

I am a newbie to Watir. This issue might be discussed many times, but
i am unable to find a solution by searching.


I am using below package.

Watir version - 1.6.2
Ruby version - 1.8.6


Today i updated my IE from 6 to 7. I used send_key method extensively
in the code. But when i execute the code browser's address bar got
automatically focused and test failed.

I tried to hide the address bar in browser but i cant. Right now i did
a workaround by using Shift+Ctrl combination, but its not a worthy
solution.

So Experts please suggest me a solution to solve this issue.


Thanks,

Prince3105

Trevor

unread,
Oct 9, 2009, 9:29:09 AM10/9/09
to Watir General
I had a similar problem
I also had to use a workaround, basically just tab away from the
address bar first
e.g.
$browser.send_keys("{tab}") #Added for IE7 as focus remains in the
address bar unless tabbed away from it

Trevor
Reply all
Reply to author
Forward
0 new messages