Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.

TryScript "hanging" whilst using BDLT approach in Silk Performer

TryScript "hanging" whilst using BDLT approach in Silk Performer

TryScript may seem that it is "hanging" when attempting to carry out a certain action, i.e. BrowserClick(), even though the related element has appeared on the screen. 

However, the Replay Engine is waiting for the browser to enter into an idle state before proceeding to interact with the elements on the page and has not hung.

Although the page may look like it has finished loading, there maybe back end AJAX network calls being made through an open socket, that means the browser does not enter into an "idle state".

Two possible workarounds exist to address this,

1) Switch synchronization mode from AJAX to HTML using the BrowserSetOpton(BROWSER_OPT_SYNC_MODE, SYNC_MODE_HTML) function (ensuring to switch back to AJAX mode after the clicks have been made), :

2) If switching the synchronization modes from AJAX to HTML does not provide a solution to the issue, switch the synchronization time-out from the default 300,000 ms (mlliseconds) to a lower value, i.e. 1 ms, by including a BrowserSetOpton(BROWSER_OPT_SYNC_TIMEOUT, 1). Like the previous troubleshooting step, it is recommended that you switch back to the default value, if including the function addresses the issue, for example:

Both options have Active Profile settings that can be applied (SILK PERFORMER | ACTIVE PROFILE | Web (Browser Driven)  - Replay |  Synchronization). However, altering these settings will result in the changes being applicable script wide, which may not be a necessity.  Instead it is recommended to just change it for the sections of the script where the problems are occurring as shown above.

Tags (2)

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments

I am logged in with my credentials, but when I click on the icons (that indicate *.png images) in the KB above, I get: 403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

Please advise, thanks.

Please could you try again and check if they now appear? (You shouldn't need to be logged in to see icons.)

Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-06-28 07:10
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.