I am using Appium with Windows App driver to automate my Desktop application. I am using C#.
When I start testing my app, I sometime encounter random error pop up , which can be ignored and continued with my execution, by clicking on OK in the pop up. My question is how to handle it when this pop up randomly coming up. I thought of creating a method of checking if the pop up is present and then click on OK to close it but I have to call this method before every step , since its random. Is there a better way to do this?