In my automation script i used explicit wait for handling wait time
wait = new WebDriverWait(driver, Duration.ofSeconds(45000));
public WebElement waitVisibility(By by) {
return wait.until(ExpectedConditions.visibilityOfElementLocated(by));
}
Now sometimes I got an error element not found Because some popup messages appear for a very short time.
error is like (tried for 40 second(s) with 500 milliseconds interval)
Here my question is how to decrese the pulling time 500 millisecond to 200 millisecond