Here is my selenium web driver initialization for firefox browser.
driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
Even though I gave implicit wait selenium not waiting for the element. It is throwing the not found exception immediately. If I put Thread.sleep
then it is working fine without any issues. But putting Thread.sleep
everywhere the test case contains now more Thread.sleep
than the actual test case code. Can anyone suggest me the right way to do this?