Esempio n. 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindowVM()
        {
            AutomapperConfiguration.Configure();

            // create the settings for the application
            _Settings = new DefaultAppiumAppSettings();

            // get the appium engine and wire up to it
            _AppiumEngine = AppiumEngine.Instance;
            _AppiumEngine.RunningStatusChanged += _AppiumEngine_RunningStatusChanged;
            _AppiumEngine.OutputDataReceived += _OutputDataReceived;
            _AppiumEngine.ErrorDataReceived += _OutputDataReceived;
            _AppiumEngine.Init(_Settings);

            if (_Settings.CheckForUpdates)
            {
                // wait ten seconds to the page loads
                Thread.Sleep(10000);
                _AppiumEngine.CheckForUpdate();
            }
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindowVM()
        {

            AutomapperConfiguration.Configure();

            // create the settings for the application
            _Settings = new DefaultAppiumAppSettings();

            // get the appium engine and wire up to it
            _AppiumEngine = AppiumEngine.Instance;
            _AppiumEngine.RunningStatusChanged += _AppiumEngine_RunningStatusChanged;
            _AppiumEngine.OutputDataReceived += _OutputDataReceived;
            _AppiumEngine.ErrorDataReceived += _OutputDataReceived;
            _AppiumEngine.Init(_Settings);

            if (_Settings.CheckForUpdates)
            {
                _AppiumEngine.CheckForUpdate();
            }

            _RemoteServerString = GetPropertyName(() => GeneralSettingsVM.UseRemoteServer);
            _UpdateRemoteServerSettings();
            GeneralSettingsVM.PropertyChanged += _GeneralSettingsVM_PropertyChanged;
        }