Re: How to give the focus to the browser ?

25 views
Skip to first unread message

Didier

unread,
Sep 3, 2009, 7:47:34 AM9/3/09
to selenium-users...@googlegroups.com
Hi,

I am also affected by this issue, did you find a solution? Here it works with Firefox but for IE6 the window opens in the background and it also just blinks on windowFocus (this is on Windows XP).

I wonder if it is not a focus stealing prevention issue in fact. I believe it cannot be solved with pure javascript and thus Selenium RC should use another solution to take the window to the foreground (like java.awt.Robot or even using the native windows API).

Currently I am trying watij as an alternative solution. It only supports IE but at least I should be able to use it to perform the windowFocus…

Silver

unread,
Sep 3, 2009, 7:59:18 AM9/3/09
to selenium-users...@googlegroups.com
No I didn't find a solution unfortunately.
I agree with you, the only way to resolve it is to add a Selenium RC feature to manipulate the system environment API or something else.

Reply all
Reply to author
Forward
0 new messages