DefaultSelenium GetWhetherThisFrameMatchFrameExpression Method WebDriver
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.

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

public bool GetWhetherThisFrameMatchFrameExpression(
	string currentFrameString,
	string target
)

Parameters

currentFrameString
Type: OnlineSystem String
starting frame
target
Type: OnlineSystem String
new frame (which might be relative to the current one)

Return Value

true if the new frame is this code's window

Implements

ISelenium GetWhetherThisFrameMatchFrameExpression(String, String)
See Also