|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
SEL-339 workaround problem - openWindow("", "myFunnyWindow") opens new winHi all!
I have button on the page - after clicking it main page is reloaded and during this reload popup is called - that Selenium cannot see Have problem with SEL-339 workaround - that is described in Selenium Reference: In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example). (This is bug SEL-339.) In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using an empty (blank) url, like this: openWindow("", "myFunnyWindow"). I am using Selenium Core, latest stable version. Firefox 2.0.0.2 and IE6 As far as I know - this command openWindow("", "myFunnyWindow") has to "steal" window's handle. But in my case - it opens new window "about:blank" my code is: <tr> <td>click</td> <td>searchButton</td> <td></td> </tr> <tr> <td>pause</td> <td>5000</td> <td></td> </tr> <tr> <td>openWindow</td> <td></td> <td>myFunnyWindow</td> </tr> <tr> <td>pause</td> <td>1000</td> <td></td> </tr> <tr> <td>storeAllWindowIds</td> <td>ids</td> <td></td> </tr> <tr> <td>storeAllWindowNames</td> <td>names</td> <td></td> </tr> <tr> <td>storeAllWindowTitles</td> <td>titles</td> <td></td> </tr> <tr> <td>echo</td> <td>${ids}</td> <td></td> </tr> <tr> <td>echo</td> <td>${names}</td> <td></td> </tr> <tr> <td>echo</td> <td>${titles}</td> <td></td> </tr> <tr> <td>selectWindow</td> <td>myFunnyWindow</td> <td></td> </tr> <tr> <td>click</td> <td>link=mylink</td> <td></td> </tr> Button is clicked, popup is displayed, and then command openWindow("", "myFunnyWindow") opens another one window "about:blank". Obiously my last command fails. All echo commands represent only first window and that empty window "myFunnyWindow" - nobody see the popup that was called during pageload Who can say - what is the proper behaviour? Is there way to send command to that popup? --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=12782&messageID=40415#40415 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: SEL-339 workaround problem - openWindow("", "myFunnyWindow") opens newif there is no solution - please tell me this
Because this is important question for us - stay with Selenium or move to another testing application --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=12782&messageID=40951#40951 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: SEL-339 workaround problem - openWindow("", "myFunnyWindow") opens newIt appears you're indicating that the popup is created when you click the button. If this is so, then this does not fall under the category described by the the notes on SEL-339 - namely, window.open() should have already been replaced by Selenium's custom opener.
What is the actual code that creates the popup you're unable to interact with? Is it calling window.open(), or is it causing some kind of form submission (see http://forums.openqa.org/thread.jspa?messageID=40550)? Haw-Bin --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=12782&messageID=41142#41142 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
| Free embeddable forum powered by Nabble | Forum Help |