In Appium i was using thread.sleep() most of the time as a solution to handle the wait for perform the next task.
But is there any better way to do the same thing without using thread.sleep().
I tired with
WebDriverWait wait = new WebDriverWait(WebDriverInti.driver, TimeSpan.FromSeconds(5000));
wait.Until(ExpectedConditions.ElementExists(By.XPath("//*[@id=“rdiv”/h3/a")));
WebDriverWait wait = new WebDriverWait(driver, time);
wait.until(ExpectedConditions.visibilityOf(WebElement element));
In your case xpath should be written as @Alexis was mentioned. And if you’ve resourceId, then please go with driver.findElementById(“xyz”); it will take less time to identify.