i am trying to make my script so robust so that if there is any error in my logic or on page, I want to notification with user defined message instead of that red color error messages like element on found or find Element().... is not a function.
I implemented code
But it is not working.
i also tried with code mentioned on
But it is also not working.