Jump to content

Recommended Posts

Posted

Does anyone know which is the class of the Error dialogs from windows? The ones that have only an "Ok" button

So far I've found the "MessageBox" class in the windows documentation (https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.messagebox?redirectedfrom=MSDN&view=netframework-4.7.2)

I have a script in that waits until a window opens, and what should happen is that if it is an error dialog it should close it or kill it, but I need to leave everything else. 

The script is for testing another software, so it is good that those errors appear, I don't need to avoid them. I just need to register when did they happen. 

Thanks! 

Posted (edited)

You can press Windows + E Type inside the adresse bar "\\\\\\\\lol" wait 15 sec and then you ll get the error box windows with "OK" and work with it.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...