How to insert wait logic and break point in eclipse

I have tried to insert wait of 5 sec using
“driver.manage().timeouts().implicitlyWait(05, TimeUnit.SECONDS);”
but when I run the script its not taking pause for 5 sec.

secondly, I tried to insert break point but script is running till the end without stopping at break point.

Default Asked on October 4, 2016 in Selenium WebDriver.
Add Comment
  • 2 Answer(s)

    Train Answered on October 13, 2016.
    Add Comment

    Use Thread.sleep(milliseconds)  which is more reliable

    Train Answered on October 24, 2016.
    Add Comment
  • Your Answer

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