Resolve the issue

Assume, you have hosted a web application on a local server and a remote server. You realize that due to network latency the time to load a web page on the remote server will be higher. Now, if you want to execute your test cases against each of them, you may have to configure the wait time accordingly.

Which of the given code snippets can be used to solve the issue?

1.driver.manage().Wait(10, TimeUnit.SECONDS);
2.driver.manage().timeouts().Wait(10, TimeUnit.SECONDS);

3.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

4.driver.manage().implicitlyWait(10, TimeUnit.SECONDS);

Related Posts

Close Bitnami banner