Frame method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: C# 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
Any legal Selenium By request.
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:IWebElement

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.