frame method
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(webElement))
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).
- webElement
- Type:WebElement
- A reference to the frame element.
Return value
- Type: SeleniumCheckSettings