RE: how to handle org.openqa.selenium.NoSuchElementException

Can any one provide me a solution for handling org.openqa.selenium.NoSuchElementException

sravan18 Default Asked on January 24, 2015 in Selenium WebDriver.
Add Comment
2 Answers


1. Sometimes it happens that you need to wait for the element to appear on the page – Try using Thread.sleep(time in ms).

2. Else give the correct id or the xpath of the element.

Vishal S

Doctor Answered on January 26, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.