Complete the code to set an implicit wait of 10 seconds.
driver.manage().timeouts().implicitlyWait([1], TimeUnit.SECONDS);The implicit wait time is set to 10 seconds using implicitlyWait(10, TimeUnit.SECONDS).
Complete the code to import the correct TimeUnit class.
import java.util.concurrent.[1];
The correct import for TimeUnit is java.util.concurrent.TimeUnit.
Fix the error in the code to correctly set implicit wait.
driver.manage().timeouts().implicitlyWait(10, TimeUnit.[1]);
The correct enum constant is SECONDS from TimeUnit. It must be uppercase without prefix.
Fill both blanks to create an implicit wait of 15 seconds.
driver.manage().timeouts().implicitlyWait([1], TimeUnit.[2]);
Implicit wait is set with 15 seconds using implicitlyWait(15, TimeUnit.SECONDS).
Fill all three blanks to set implicit wait and import the correct package.
import java.util.concurrent.[1]; WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait([2], TimeUnit.[3]);
Import TimeUnit, then set implicit wait to 10 seconds with implicitlyWait(10, TimeUnit.SECONDS).
