I am very confused about how to use implicit wait in selenium
driver.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(4, TimeUnit.SECONDS);
I saw someone wrote those two line codes together very often. Why do we need the pageLoadTimeOut line? I think the first line is enough.
I searched a lot through google, and still confused
Have a look at WebDriver.Timeouts
There is no reason to write those in several places, this is one time setting that remains during the
driverlife time.You should also note that you are using deprecated methods
implicitlyWait(long time, TimeUnit unit)andpageLoadTimeout(long time, TimeUnit unit).