In Global Handler when i use SystemException in If condition then why SelectorNotFoundException not falling in Systemexception

330 views Asked by At

Code ImageQuery 2 Image Query 1- I have used GlobalHandler.xaml file in my project and in GlobalHandler.xaml file i have mentioned condition in if statement like - errorInfo.Exception.GetType().Name.ToString.Contains("SystemException") then {Do something}
but when i run main.xaml in which i have used one attach browser activity in sequence and that i put that sequence in Try block so that giving me SelectorNotFoundException because i have closed the browser and after that i am running main.xaml so my question is why this selector exception is not falling in above condition System Exception part it always fall in else part which is blank. Please refer attach screenshots(Query Image 1) .

0

There are 0 answers