Exemplo n.º 1
0
        public static void MethodName2()
        {
            var myApp     = new Application("C:\\TestApp\\UIAutomation.TestApp.exe");
            var appWindow = myApp.Start();
            var editBox   = appWindow.Locate <CheckBox>(Found.ByAutomationId("checkboxAutomationId"));

            editBox.Check();

            Assert.That(editBox.IsChecked, Is.True);

            myApp.Close();
        }
Exemplo n.º 2
0
        public static void MethodName3()
        {
            var myApp     = new Application("C:\\TestApp\\UIAutomation.TestApp.exe");
            var appWindow = myApp.Start();
            var editBox   = appWindow.Locate <ComboBox>(Found.ByAutomationId("comboboxAutomationId"));

            //editBox.GetSelection

            Assert.That(editBox.GetSelection, Is.EqualTo(0));

            myApp.Close();
        }
Exemplo n.º 3
0
        public static void MethodName()
        {
            var myApp     = new Application("C:\\TestApp\\UIAutomation.TestApp.exe");
            var appWindow = myApp.Start();
            var editBox   = appWindow.Locate <Edit>(Found.ByAutomationId("textboxAutomationId"));

            editBox.Value = "Hello World";

            Assert.That(editBox.Value, Is.EqualTo("Hello World"));

            myApp.Close();
        }