Ejemplo n.º 1
0
        public static HorizonObjectModel GetHorizonObjectModel()
        {
            if (_horizonObjectModel == null)
            {
                var capabilities = new DesiredCapabilities();

                //const string appId = @"C:\Windows\System32\notepad.exe";
                const string appId = @"C:\Code\Zuto.Horizon.Client\HorizonDesktop\bin\Debug\HorizonDesktop.exe";
                //const string appId = @"C:\Code\TestProjects\MvvmIOCTests\SimpleIOC\WindowWithoutParameterViaEvent\bin\Debug\MvvmIOCTests.exe";
                const string webDriverUrl = @"http://127.0.0.1:4723";

                capabilities.SetCapability("app", appId);
                var session = new RemoteWebDriver(new Uri(webDriverUrl), capabilities);
                Thread.Sleep(3000);
                _horizonObjectModel = new HorizonObjectModel(session);
                session.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
            }

            return(_horizonObjectModel);
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _horizonObjectModel = HorizonObjectModelFactory.GetHorizonObjectModel();
 }