ISelenium GetWhetherThisWindowMatchWindowExpression Method WebDriver
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.

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

bool GetWhetherThisWindowMatchWindowExpression(
	string currentWindowString,
	string target
)

Parameters

currentWindowString
Type: OnlineSystem String
starting window
target
Type: OnlineSystem String
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
See Also