Frame method

Class: TargetPlatform: Selenium 3Language: C# SDK:

Configure Check to match an iframe in a window or another iframe.

Chain several calls to this method to navigate a hierarchical iframe tree. You can also chain a Region method to define that only a region in the frame should be matched and not the entire iframe.

Syntax


eyes.Check(Target.Frame(by))
eyes.Check(Target.Frame(frameNameOrId))
eyes.Check(Target.Frame(index))
eyes.Check(Target.Frame(frameReference))

Parameters

by
Type:By
An element selector which is chosen using the Selenium By class.
frameNameOrId
Type:string
The name or id of the frame element.
index
Type:int
The index of the iframe (as in Selenium By Index).
frameReference
Type:IWebElement
A reference to the frame element.

Return value

Type: SeleniumCheckSettings