An NDoc Documented Class Library |

# DefaultSelenium.OpenWindow Method

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.

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").

public void 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

#### Implements

ISelenium.OpenWindow

#### See Also

DefaultSelenium Class | Selenium Namespace