Пример #1
0
        public override bool AttachOrLaunch(string applicationExePath)
        {
            Info_n("Starting App Watcher...", "for: " + applicationExePath);

            try
            {
                var proc = new ProcessStartInfo(applicationExePath);
                _app = Application.AttachOrLaunch(proc);
            }
            catch (Exception ex) {
                return Error_n("Failed to start app watcher.", ex.Details(true, false)); }

            this._find = ForwardLogs(new WhiteElementFinder(_app));
            this.Find = this._find;
            this.Driver = ForwardLogs(new WhiteUiDriver(_find));


            AddHandlerForWindowOpened();


            return true;
        }
Пример #2
0
        public override bool AttachOrLaunch(string applicationExePath)
        {
            Info_n("Starting App Watcher...", "for: " + applicationExePath);

            try
            {
                var proc = new ProcessStartInfo(applicationExePath);
                _app = Application.AttachOrLaunch(proc);
            }
            catch (Exception ex) {
                return(Error_n("Failed to start app watcher.", ex.Details(true, false)));
            }

            this._find  = ForwardLogs(new WhiteElementFinder(_app));
            this.Find   = this._find;
            this.Driver = ForwardLogs(new WhiteUiDriver(_find));


            AddHandlerForWindowOpened();


            return(true);
        }
Пример #3
0
	internal WhiteUiDriver(WhiteElementFinder whiteFinder)
	{
		this._find = whiteFinder;
	}
Пример #4
0
 internal WhiteUiDriver(WhiteElementFinder whiteFinder)
 {
     this._find = whiteFinder;
 }