Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
204 views
by The go-to Tester (473 points)
retagged by
Many time due to timeout or element not found exception comes up and script gets failed. Due to this report showing wrong output. So how to handle such exception?

1 Answer

0 like 0 dislike
by Contributing Tester (35 points)
selected by
 
Best answer
We can handle the exceptions using try and catch blocks .

And also we can handle user defined exceptions . If you have clear explanation switch to this link

http://toolsqa.com/selenium-webdriver/exception-handling-selenium-webdriver/


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...