public static CalcObjectModel GetCalcObjectModel()
        {
            if (_calcWrapper == null)
            {
                var capabilities = new DesiredCapabilities();

                const string appId        = @"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App";
                const string webDriverUrl = @"http://127.0.0.1:4723";

                capabilities.SetCapability("app", appId);
                var calcSession = new RemoteWebDriver(new Uri(webDriverUrl), capabilities);
                _calcWrapper = new CalcObjectModel(calcSession);
            }

            return(_calcWrapper);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     _calcWrapper = CalcFactory.GetCalcObjectModel();
     _calcWrapper.SetToStandardMode();
 }