I've been searching on google for best practices regarding exception
handling, however I did not have much success besides using try-catch
.
My framework is set with a EventFiringWebDriver
which, according to Selenium documentation has a ExceptionThrown
event.
I was thinking in implementing it so we can quickly debug the method that threw the exception, as some colleagues are not programmers and don't know a lot about coding.
The other idea I had is adding try-catch
to each method
but this seems like a really tedious and worthless endeavour as I
would've to keep adding try-catchs to each new method.
So my question is, do you have any best practices regarding exception handling?
Thank you very much.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/310d433b-0984-4459-a165-9d594dffe09b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.