Testing_Selenium::getWhetherThisWindowMatchWindowExpression
Determine whether currentWindowString plus target identify the window containing this running code.
<p> 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. </p>
Signature
public function getWhetherThisWindowMatchWindowExpression(string
$currentWindowString,
string
$targetĀ )
Parameters
-
$currentWindowString
- starting window
-
$target
- new window (which might be relative to the current one, e.g., "_parent")
Returns
- boolean
- true if the new window is this code's window