コード例 #1
0
        public void SetupSession()
        {
            DesiredCapabilities appCapabilities = new DesiredCapabilities();

            appCapabilities.SetCapability("app", WearherAppAutomationId);
            appCapabilities.SetCapability("platformName", "Windows");

            DriverInstance = WinAppDriver.GetSessionWithRetry <WindowsElement>(appCapabilities, 10);

            DriverInstance.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
        }