How can I solve this error?

I was following Lakshay’s tutorial on selenium webdriver for beginners and stumbled upon the error that I will include in the screenshot.

How can I solve this error?

 

Thanks everyone in advance for helping out!

Default Asked on February 13, 2017 in Selenium WebDriver.

Please use,

Thread.sleep has consider the time in miliseconds,

try{
--CODE
Thread.Sleep(1000);
}catch(Expression ex){
system.out.print(ex.getmessage());
}

Using explicit wait is better to be suggested, because it is a kind of wait for a certain condition to occur before proceeding further in the code.

on March 5, 2017.
Add Comment
  • 0 Answer(s)
  • Your Answer

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