frame method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: Python SDK:

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

Syntax


eyes.Check(Target.window().frame(frame_name_or_id))
eyes.Check(Target.window().frame(element))
eyes.Check(Target.window().frame(index))
eyes.Check(Target.window().frame(by))

Parameters

frame_name_or_id
Type:FrameNameOrId
The name or id of the frame element.
FrameNameOrId
The type FrameNameOrId is defined as: Text
element
Type:AnyWebElement
The element object of the frame.
AnyWebElement
The type AnyWebElement is defined as: Union[EyesWebElement,WebElement]
index
Type:FrameIndex
The index of the frame element as defined by Selenium.
FrameIndex
The type FrameIndex is defined as: int
by
Type:BySelector
Any legal Selenium By request.
BySelector
The type BySelector is defined as: List[SeleniumBy,Text]

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.