public static IWebElement FindElementByIosUIAutomation(this IOSDriver driver, string selector, int timeoutSecs) { driver.SetTimeout(timeoutSecs); var element = driver.FindElementWithMethod(new Func <string, IWebElement>(driver.FindElementByIosUIAutomation), selector); driver.SetDefaultWait(); return(element); }