An NDoc Documented Class Library

DefaultSelenium.GetWhetherThisWindowMatchWindowExpression Method 

Determine whether currentWindowString plus target identify the window containing this running code.

This is useful in proxy injection mode, where this code runs in every browser frame and window, and sometimes the selenium server needs to identify the "current" window. In this case, when the test calls selectWindow, this routine is called for each window to figure out which one has been selected. The selected window will return true, while all others will return false.

public bool GetWhetherThisWindowMatchWindowExpression(
   string currentWindowString,
   string target
);

Parameters

currentWindowString
starting window
target
new window (which might be relative to the current one, e.g., "_parent")

Return Value

true if the new window is this code's window

Implements

ISelenium.GetWhetherThisWindowMatchWindowExpression

See Also

DefaultSelenium Class | Selenium Namespace