Appium Driver findelement

Hi,

We are using Appium driver to find elements. But if we object is not available in application, it waits for one minute to give an error Object not found.
Please suggest from is it possible to set wait time. If yes, how.

Hi,

You may wait for certain time period for element to be appear/displayed.
WebDriverWait wait = new WebDriverWait(driver, timeToBeWaitForAnElement);
By locator = By.xpath(“locator strategy”);
wait.until(ExpectedConditions.elementToBeClickable(locator);
if(driver.findElement((locator)).isDisplayed())
{
driver.findElement(By.click/sendKeys…etc);
}

Hope this helps. :slight_smile: