Ejemplo n.º 1
0
        public void HelloWorldTest()
        {
            IProcess process = Driver.Applications.Run("notepad.exe");

            // Get the top-level window of Notepad.
            // You can get object identification code from the TestLeft UI Spy panel:
            // From the main menu, select View -> TestLeft UI Spy.
            ITopLevelWindow window = process.Find <ITopLevelWindow>(new WindowPattern()
            {
                WndClass = "Notepad"
            });

            window.Keys("Hello world!!"); // Simulate text input
        }