Stay on the page for 30 minutes then do the operations (Webdriver-Java)
2 answers
An implicit wait is to tell the WebDriver
DOM to poll for a specific amount of time when trying to find an element or elements that are not immediately available. It won't be useful for the current scenario.
You can use Thread.sleep
or TimeUnit.sleep
like
try {
TimeUnit.MINUTES.sleep(30);
} catch (InterruptedException e) {
//Handle exception
}
For more information: I cannot use Thread.sleep (x) or wait (): java.lang.InterruptedException; must be caught or declared abandoned
+5
source to share