Back to QMetry All Products Help Page
How to apply implicit wait on custom steps?
Defining implicit wait is only available for custom steps. Follow the below-mentioned steps to define implicit wait on custom steps:
Option 1: Create custom steps to write your own implicit method by adding the below line of code :
new WebDriverTestBase().getDriver().manage().timeouts().implicitlyWait(10000,TimeUnit.SECONDS);
Option 2: Import a library and use the wait method in the custom step:
Import below library :
import java.util.concurrent.TimeUnit;
Add below code in a custom step:
TimeUnit.SECONDS.sleep(1);
Back to QMetry All Products Help Page