Error in catch exception

uiautomation
trycatch

#1

Hi,

i have a problem in catching an exception. I have a Main workflow that invoke other xaml file. In the Main workflow i put the Try Catch block to manage the “selectornotfound” exception.

The situation is similar to this

TryCatch doc

Trying to simulate the error i saw that the block didn’t function.
I tried to put the trycatch block not in the main but in the xaml that i invoked and this way it works

Can someone help me?


#2

Hi,

Attached you can find an example that show that it works. Please let me know if is clear for you.

Try_Catch_exemple.zip (3.7 KB)

Thanks,
Ninett