Identify the correct statements about the code snippet given below:
Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)
.withTimeouts(30, SECONDS)
.pollingEvery(30, SECONDS)
WebElement foo = wait.until(new function<WebDriver,WebElement>()
{
Public WebElement apply (WebDriver, driver)
{
Return driver.findElement(By.id(“foo”));
}
});
Select One or More
Select one or more of the following: