I am facing a challenge with testing an insurance policy admin system that involves entering policy holder information using a custom extension that generates random individuals, including vehicle VINs pulled from Polk verified VINs. The system I am creating a script for triggers an alert if the VIN is found on another policy, which I want to avoid causing errors or script failures.
While the alert works when it is present, it generates an error when absent. Although this does not halt the script, the error in the log gives a false impression of failure, leading to repeated test runs.
My current approach aims to skip the alert step if it is not present, but this results in script failure and an 'Unexpected Alert' error when the alert is detected. Despite spending the day researching solutions, I have yet to find a workaround that meets my requirements.
Is there a way to bypass the alert steps when ${isAlert} is false using Selenium IDE? That is the preferred testing platform for my organization.