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