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; }
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); }
internal WhiteUiDriver(WhiteElementFinder whiteFinder) { this._find = whiteFinder; }