Highlighted
Absent Member.
Absent Member.
369 views

Vugen script takes different action when error occurs

Hi,

 

We have Vugen 9.5 and we created a script that logs on to a web page.  Sometimes the user id used in the script does not exit successfully and the web site thinks the id is still logged in during the next runtime of the script.

Is there a way to modify the script that if a certain error message appears then click the button that allows access using the existing connection, and if there is no error then the script should work as normal?

 

Thanks

 

Andrew

0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

Re: Vugen script takes different action when error occurs

It is possible to modify your script according to your requirement. Insert a web_reg_find() function in your script in order to capture the required error message. Insert an IF condition to perform the required set of actions according to the condition. It is very simple. Please refer to the "Vugen help" for the function syntaxes if required. Let me know if you need any more help. Thanks. 🙂

0 Likes
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.