public void TestSetup() { AppiumOptions capabilities = Caps.getIos112Caps(Apps.get("iosWebviewApp")); if (Env.isSauce()) { capabilities.AddAdditionalCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.AddAdditionalCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.AddAdditionalCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.LocalServiceURIForIOS; driver = new IOSDriver <IWebElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitWait = Env.IMPLICIT_TIMEOUT_SEC; }