public void Attach() { _core.Attach(); _app = new WindowsAppFriend(_core.Process); MainForm = new MainFormDriver(new WindowControl(_app, _core.Process.MainWindowHandle)); InitApp(); }
public AppDriver() { var process = Process.Start("EmployeeManagement.exe"); _app = new WindowsAppFriend(process); MainForm = new MainFormDriver(new WindowControl(_app, process.MainWindowHandle)); }