BrowserEngine: 42 - Scrolling Functionality failed
When using browser driven load testing feature the 'BrowserEngine: 42 - Scrolling Functionality failed' error can occur when a scroll operation is needed to reach a button further down the page but scrolling has failed for some reason. In the TrueLog on error file you should see that the page has an image which contains scroll bars.
The first thing to determine is whether the scroll bars can be eliminated completely by setting the browser window size to a higher value. The BrowserStart function contains the size used during record. For example:
BrowserStart(BROWSER_MODE_DEFAULT, 680, 450);
You can determine the resolution set on your agent machines and set the BrowserStart function to match:
BrowserStart(BROWSER_MODE_DEFAULT, 1600, 900);
In many cases this will remove the scroll bars completely and scrolling will no longer be required. As an alternative, you can also set the scroll position explicitly using a function: BrowserSetScrollPos. For example:
// scroll one whole page down (e.g. 600 pixels) BrowserSetScrollPos(600,0,BROWSER_RELATIVE_SCROLLING); // get the actual scroll position BrowserGetScrollPos(top, left); // print top, left coordinates print(string(top)); print(string(left));
Whether you use the absolute scrolling or remove the scroll bars altogether this error should no longer occur.