An NDoc Documented Class Library

ISelenium.GetWhetherThisFrameMatchFrameExpression Method 

Determine whether current/locator identify the frame 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" frame. In this case, when the test calls selectFrame, this routine is called for each frame to figure out which one has been selected. The selected frame will return true, while all others will return false.

bool GetWhetherThisFrameMatchFrameExpression(
   string currentFrameString,
   string target
);

Parameters

currentFrameString
starting frame
target
new frame (which might be relative to the current one)

Return Value

true if the new frame is this code's window

See Also

ISelenium Interface | Selenium Namespace