New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Absent Member.. Absent Member..
Absent Member..
368 views

TruClient Firefox authentication

Hello,

I have a TruClient Firefox script that opens a website that requires authentication to changing amount of domains. For example opening http://homepage.domain.com it always requires authentication to homepage.domain.com but also to http://datasheet.domain.com and/or http://manuals.domain.com depending on the data loaded in http://homepage.domain.com. I have one user account (domain.com\user1) which can login to all these domains.

TruClient Firefox (Vugen 12.02) is able to pick up pop-up authentication dialogues and I am able to create a script which logins correctly to the current amount of logins requred. Problem is that as web site developers/admins change the layout and the content of the http://homepage.domain.com it might require a different amount of logins to various domains. Therefore there might be an extra authentication dialog in the script which fails OR the site might need one more authentication dialog and fails because it is not there.

With WEB/HTML or Click&Script I could use:

web_set_user( "domain.com\user1", "password1", "homepage.domain.com:80" );

web_set_user( "domain.com\user1", "password1", "datasheet.domain.com:80" );

web_set_user( "domain.com\user1", "password1", "manuals.domain.com:80" );

 

Any way to use such functions for example in C-functions.c or JS-functions.js include in TruClient Firefox? Or any other ideas how to resolve this?

Also if it could be possible to identify appeared pop-up dialogs we could then create an IF Flow control which could then login to the correct amount of pop-up dialogues. But at least Verify of Wait for Object functions are unable to identify those pop-ups.

Thanks for the replies!

 

 

0 Likes
1 Reply
Highlighted
Fleet Admiral
Fleet Admiral

Hi,

In 12.50 you can handle that with Dialog Event Handler and make sure you authenticate whenever the dialog appears. 

In 12.02 you can workaround it by adding additional authentication steps where needed and "Catch Error" step after each one of them. If authentication is required the step will be replayed, if not, it will fail on timeout and the catch error will catpure it allowing the script to continue to run

Regards,

Shlomi

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.