scroll
Scroll to a specific element. You can also append/pass two offset values as parameter to scroll to a specific position.
Usage
1 | browser.scroll([selector][,xoffset][,yoffset]); |
Parameters
Param | Type | Details |
---|---|---|
selector optional |
String | element to scroll to |
xoffset optional |
Number | x offset to scroll to |
yoffset optional |
Number | y offset to scroll to |
Example
1 | it('should demonstrate the scroll command', function () { |