WhetherThisWindowMatchWindowExpression

From STIQ

Jump to: navigation, search

storeWhetherThisWindowMatchWindowExpression ( currentWindowString, target, variableName )

assertWhetherThisWindowMatchWindowExpression ( currentWindowString, target )
assertNotWhetherThisWindowMatchWindowExpression ( currentWindowString, target )
verifyWhetherThisWindowMatchWindowExpression ( currentWindowString, target )
verifyNotWhetherThisWindowMatchWindowExpression ( currentWindowString, target )
waitForWhetherThisWindowMatchWindowExpression ( currentWindowString, target )
waitForNotWhetherThisWindowMatchWindowExpression ( currentWindowString, target )


Arguments:

  • currentWindowString - starting window
  • target - new window (which might be relative to the current one, e.g., "_parent")
  • variableName - the name of a variable in which the result is to be stored.


Returns:

  • True if the new window is this code's window


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.

Personal tools
Noteworthy