I have a weird proxy configuration that makes the proxy login screem appear at any point during script execution.
I am trying to use whenever method but did not quite get on how to use it.
Basically I have the actions the user need to take to fill the authentication screen and would like to play those, anytime the screen appears.
Can someone help me with that?
Answer by Yuriy L. ·
The documentation page that describes Whenever contains two pretty good examples, so I do not think you should have problems with this method.I’d guess that your real problem is with choosing the event that needs to be referenced by Whenever.
The Recorder allows for several types of events. Both documentation examples on using Whenever use Key events, not applicable to your use case. You need an event that would be triggered when a proxy login window pops up, but would not be triggered in any other circumstances. If the proxy login window can be unambiguously represented by IEWindow or Window object, then a WindowEvent should be sufficient. Otherwise, you will need to use either a BitmapEvent, that would rely on a graphical image unique for the a proxy login window, or a ScreenEvent that would rely on a text unique for the a proxy login window.
Whatever kind of even you choose, it might be pre-created and stored in the Recorder database or created dynamically. In case the event can always be the same on every execution of the script, the former method is much easier to use.
Proxy Login on IE 1 Answer
Dealing with PDF download Agent Recorder 2 Answers
How to handle errors properly 2 Answers