SeeTest Client - SetWebAutoScroll
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
void SetWebAutoScroll(boolean AutoScroll**)**
Description
Command to determine behavior of scrolling to invisible elements on a webView.
Note: The webAutoScroll is not supported for elements such that one of their ancestors contains property 'transform', because that property may change the coordinates of elements on the web page. To enable webAutoScroll please remove 'transform' property from the elements and its parents.
Parameters
- AutoScroll: boolean
o true: Will scroll the webView when searching for invisible objects.
o false: Will not scroll the webView when searching for invisible objects.
Usage
When setting SetWebAutoScroll to False, the result will be "False", since the Golf tab is not visible on the screen: | When setting SetWebAutoScroll to True, the result will be "True", since the test will automatically scroll down the web page until it finds the Golf tab: |
Example
Scenario: We will use the IsElementFound command to look for the "Golf" tab in the www.cnn.com page, which is not initially visible on the screen.
This is how the script will look like in the SeeTest UI: