frame method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: Java SDK:

Select a frame that is a direct descendent of a frame selected previously in the chain.

Syntax


eyes.check(Target.frame(by).frame(by))
eyes.check(Target.frame(by).frame(frameNameOrId))
eyes.check(Target.frame(by).frame(index))
eyes.check(Target.frame(by).frame(frameReference))

Parameters

by
Type:By
frameNameOrId
Type:String
The name or id of the frame element.
index
Type:int
The index of the frame element as defined by Selenium.
frameReference
Type:WebElement

Return value

Type: SeleniumCheckSettings
The value returned is the object that called the method. You can use it to call other methods supported by the object class.

Remarks

You may only use this method in the chain if the first method in the chain is frame. You may not call it if the first method in the chain is window or region. Call this method multiple times to descend a hierarchy of embedded frames.