TruClient Firefox authentication
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!
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