Re: Link has target '_blank', which is not supported in Selenium! Randomizi

229 views
Skip to first unread message

marijke

unread,
Jan 9, 2007, 7:43:44 AM1/9/07
to selenium-users...@googlegroups.com
I have another case, this would be a popup window with target _blank.

window.open call intercepted; window ID (which you can use with selectWindow()) is ""

Here I don't even get a randomized target ...
I tried the solution offered in another thread (http://forums.openqa.org/thread.jspa?threadID=2333&tstart=0), but I can't get it work fine:

{code:html}<tr>
<td>store</td>
<td>dom=javascript{this.page().findElement('link=Borrar').target='popup'}</td>
<td>myVar</td>
</tr>
<tr>
<td>store</td>
<td>dom=javascript{selenium.browserbot.getCurrentWindow().open('', 'popup')}"</td>
<td>myWindow</td>
</tr>
<tr>
<td>click</td>
<td>link=Borrar</td>
<td></td>
</tr>
<tr>
<td>waitForPopUp</td>
<td>popup</td>
<td>30000</td>
</tr>
<tr>
<td>selectWindow</td>
<td>popup</td>
<td></td>
</tr>{code}

Can anybody help me with this?

marijke

unread,
Jan 10, 2007, 4:35:27 AM1/10/07
to selenium-users...@googlegroups.com
Thanks a lot, this helped me a lot!! This morning I downloaded the latest version of the IDE, I think I didn't have the latest version, but still using _blank wouldn't have occured on me.
Thanks

marijke

unread,
Jan 15, 2007, 6:05:24 AM1/15/07
to selenium-users...@googlegroups.com
With the following
< a href="javascript: void window.open('/URL,'','width=350,height=130')">

in the log window I get the following:
# debug: window.open call intercepted; window ID (which you can use with selectWindow()) is ""
# debug: getWindowByName(_blank)
# warn: currentTest.recordFailure: Window does not exist

Is there a way select the window?

Reply all
Reply to author
Forward
0 new messages