frame method
Select a frame that is a direct descendent of a frame selected previously in the chain.
Syntax
eyes.check(Target.frame(frame).frame(context));
eyes.check(Target.frame(frame).frame(frame_ele, scrollRootElement_ele));
eyes.check(Target.frame(frame).frame(frame_ele));
eyes.check(Target.frame(frame).frame(frame_ele, scrollRootElement_sel));
eyes.check(Target.frame(frame).frame(frame_sel, scrollRootElement_ele));
eyes.check(Target.frame(frame).frame(frame_sel));
eyes.check(Target.frame(frame).frame(frame_sel, scrollRootElement_sel));
eyes.check(Target.frame(frame).frame(frame_str, scrollRootElement_ele));
eyes.check(Target.frame(frame).frame(frame_str));
eyes.check(Target.frame(frame).frame(frame_str, scrollRootElement_sel));
eyes.check(Target.frame(frame).frame(frame_num, scrollRootElement_ele));
eyes.check(Target.frame(frame).frame(frame_num));
eyes.check(Target.frame(frame).frame(frame_num, scrollRootElement_sel));
Parameters
- context
- Type:
{ frame: Element | Selector | string | number; scrollRootElement?: Element | Selector; };
{ frame: Element | Selector | string | number; scrollRootElement?: Element | Selector; };
Type definitions
- Element
- Used to identify an HTML element defined as |{ELEMENT:string}|{'element-6066-11e4-a52e-4f735466cecf':string}|import('nightwatch').NightwatchTypedCallbackResult.
- Selector
- Used to identify an HTML element defined as |{locateStrategy:import('nightwatch').LocateStrategy;selector:'string'}|string|{selector:string;type:string}.
- frame_ele
- Type:Element
A descriptor for the frame.
An element the contains the frame.
Type definitions
- Element
- Used to identify an HTML element defined as |{ELEMENT:string}|{'element-6066-11e4-a52e-4f735466cecf':string}|import('nightwatch').NightwatchTypedCallbackResult.
- scrollRootElement_ele
- Type:Element [Optional ]
The element or a selector that should be scrolled to access the frame.
An element that should be scrolled to access the frame. The element or a selector that should be scrolled to access the frame.
Type definitions
- Element
- Used to identify an HTML element defined as |{ELEMENT:string}|{'element-6066-11e4-a52e-4f735466cecf':string}|import('nightwatch').NightwatchTypedCallbackResult.
- scrollRootElement_sel
- Type:Selector [Optional ]
The element or a selector that should be scrolled to access the frame.
A selector to an element that should be scrolled to access the frame. The element or a selector that should be scrolled to access the frame.
Type definitions
- Selector
- Used to identify an HTML element defined as |{locateStrategy:import('nightwatch').LocateStrategy;selector:'string'}|string|{selector:string;type:string}.
- frame_sel
- Type:Selector
A descriptor for the frame.
A selector the selects the frame.
Type definitions
- Selector
- Used to identify an HTML element defined as |{locateStrategy:import('nightwatch').LocateStrategy;selector:'string'}|string|{selector:string;type:string}.
- frame_str
- Type:string
A descriptor for the frame.
The name attribute of the frame.
- frame_num
- Type:number
A descriptor for the frame.
The index of the frame element as defined by Selenium.
Return value
- Type: CheckSettings
- The value returned is the object that called the method. You can use it to call other methods supported by the object class.