setScrollRootElement method
Use this method to set the element to which setHideScrollbars will be applied.
Syntax
eyes.setScrollRootElement(scrollRootElement_ele);
eyes.setScrollRootElement(scrollRootElement_sel);
Parameters
- scrollRootElement_ele
- Type:Element
The element or element descriptor.
An element whose position and bounding rectangle defines the region.
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
The element or element descriptor.
A selector to an element whose position and bounding rectangle defines the region.
Type definitions
- Selector
- Used to identify an HTML element defined as |{locateStrategy:import('nightwatch').LocateStrategy;selector:'string'}|string|{selector:string;type:string}.
Return value
- Type: void