Testing_Selenium::openWindow
Opens a popup window (if a window with that ID isn't already open).
After opening the window, you'll need to select it using the selectWindow command. <p> This command can also be a useful workaround for bug SEL-339. 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). 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"). </p>
Signature
public function openWindow(string
$url,
string
$windowIDÂ )
Parameters
-
$url
- the URL to open, which can be blank
-
$windowID
- the JavaScript window ID of the window to select