Ejemplo n.º 1
0
        //--------------------------------------------------------------------------------------------------

        public MainWindowAdaptor(ApplicationAdaptor app)
            : base(app, "MacadMainWindow")
        {
            _Application = app;
            Window.Focus();
            Wait.UntilResponsive(Window);
        }
Ejemplo n.º 2
0
        public void OneTimeSetUp()
        {
            App = new ApplicationAdaptor();
            App.Init(EnableWelcomeDialog);

            // Create main window
            MainWindow = new MainWindowAdaptor(App);

            Pipe = new DebugPipeClient();
        }
Ejemplo n.º 3
0
        //--------------------------------------------------------------------------------------------------

        public WindowAdaptor(ApplicationAdaptor app, string automationId)
        {
            // Find window
            using (var automation = new UIA3Automation())
            {
                do
                {
                    Window = app.FindWindow((win) => win.AutomationId == automationId);
                } while (Window == null);

                Window.Focus();
                Wait.UntilResponsive(Window);
            }
        }