How to work with "error window"?

Hi everybody. Does any body know how to work with “error window” ?

Hi @oredresser!

If you want to show “error window” you shuld use “throw” activity.

for example: if you have some try/catch block you can put “throw” activity and pass that exception in catch if you want to show error.

hope this helps! :smiley:

2 Likes

Hi @oredresser,

I hope this will help you :smiley: :smiley: :smiley:

3 Likes

Thank you!!

Thank you!!

1 Like

If i want to get rid off pop up error window what to do? Error window is not generated by robot, but lets say from web application, desktop application, etc… How to skip it and continue?

2 Likes

Hi
does that error window has any button to click so that it get closed
Cheers @oredresser

1 Like

Yes, it does. The question is, is there any tool how to recognize those windows and click ok and proceed to the next row item

2 Likes

Fine no worries
— hope you have the workflow ready
— keep that workflow inside a try block of try catch activity
— if any error message pops ups and the process gets disrupted it will go to Catch block
— there include a activity called ELEMENT EXISTS OR IMAGE EXISTS ACTIVITY these two activities will look for a element if we are able to select the elements as individual elements or will search for image if we are not able to select the elements as individual elements and either of these activities will give us a output a variable of type Boolean named bool_exists
— if the element or image occurs pass this output variable to a if condition activity like this
bool_exists = True
—if True will go to THEN part of if condition where we can use a activity called click to click on the ok or any button in that pop up window
— else the exception is not because of that pop up and is because of some other stuffs and we can mention that in ELSE part with some log message activity or a write line activity

Hope this would be helpful
Kindly revert for any queries or clarification
Cheers @oredresser

4 Likes

Oh great, thank you for help buddy!!!:smiley:

1 Like

Cheers @oredresser

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.