testingfunctional-testingloadrunnertruclient

How do I handle an unpredicted alert in TruClient?


How do I handle an unpredicted alert in TruClient?

My application throws an alert box sometimes notifying about system related stuff. I cannot predict when it will appear.

I do not want to add many Press OK in alert dialog all over the script.

Is there a more elegant solution?
Can I disable those alerts at all?


Solution

  • You can disable alerts by overriding the browser implementation with an empty implementation of your own but a more elegant solution will be to use TruClient Event Handler for dialog.

    See below links for more details

    Good luck