Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

BrowserEngine: 42 - Scrolling Functionality failed

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)
    // get the actual scroll position
    BrowserGetScrollPos(top, left);
    // print top, left coordinates

Whether you use the absolute scrolling or remove the scroll bars altogether this error should no longer occur.


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-12-30 08:39
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.