public override void OneTimeSetUp()
        {
            base.OneTimeSetUp();
            this.loseFocusButton = this.Window.GetByText<Button>("lose focus");
            this.currentCultureTextBlock = this.Window.Get<Label>("currentCultureTextBlock");

            this.defaultBox = this.Window.FindRow("default").Value<ComboBox>();
            this.lostFocusBox = this.Window.FindRow("lostfocus").Value<ComboBox>();
            this.readonlyBox = this.Window.FindRow("readonly").Value<ComboBox>();
            this.editableBox = this.Window.FindRow("editable").Value<ComboBox>();
        }
예제 #2
0
 protected override void ExecuteTestRun(WindowsFramework framework)
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>(SearchCriteria.ByAutomationId("AComboBox"));
     RunTest(ListItemInComboBoxWithoutTextAvailableInitially, WindowsFramework.Wpf);
     RunTest(ComboBoxWithAutoExpandCollapsedOnceItemsAreRetrieved);
     RunTest(ComboBoxOnlyCollapsesWhenExpansionWasForItemRetrieval);
     RunTest(CanSelectItemAtTopOfList);
     RunTest(CanGetAllItems);
     RunTest(CanSelectItemAtBottomOfList);
     RunTest(CanSelectItemAtTopOfList); // Once an item is selected at the bottom of the list, White couldn't select at the top again
     RunTest(CanSelectByIndex);
     RunTest(CanSelectReallyLongText);
     RunTest(SetValue);
 }
        public void OneTimeSetUp()
        {
            var title = "EnumRowWindow";
            this.application = Application.AttachOrLaunch(Info.CreateStartInfo(title));
            this.window = this.application.GetWindow(title);
            this.loseFocusButton = this.window.GetByText<Button>("lose focus");
            this.currentCultureTextBlock = this.window.Get<Label>("currentTextBlock");

            this.currentBox = this.window.FindRow("current").Value<ComboBox>();
            this.explicitTypeBox = this.window.FindRow("explicit_type").Value<ComboBox>();
            this.lostFocusBox = this.window.FindRow("lostfocus").Value<ComboBox>();
            this.readonlyBox = this.window.FindRow("readonly").Value<ComboBox>();
            this.editableBox = this.window.FindRow("editable").Value<ComboBox>();
        }
예제 #4
0
        public void ListItemInComboBoxWithoutTextAvailableInitiallyTest()
        {
            if (Framework != WindowsFramework.Wpf)
            {
                Assert.Ignore();
            }

            // Restart the application and reinitialize
            Restart();
            ComboBoxUnderTest = MainWindow.Get<ComboBox>(SearchCriteria.ByAutomationId("AComboBox"));

            try
            {
                CoreAppXmlConfiguration.Instance.ComboBoxItemsPopulatedWithoutDropDownOpen = false;
                Assert.That(ComboBoxUnderTest.Items, Has.Count.EqualTo(0));
            }
            finally
            {
                CoreAppXmlConfiguration.Instance.ComboBoxItemsPopulatedWithoutDropDownOpen = true;
            }
        }
 protected override void ExecuteTestRun(WindowsFramework framework)
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>("EditableComboBox");
     RunTest(SetValueInEditableComboBox);
     RunTest(SelectItemInEditableComboBox);
 }
예제 #6
0
 public void Setup()
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>("EditableComboBox");
 }
예제 #7
0
 protected override void ExecuteTestRun(WindowsFramework framework)
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>("DataBoundComboBox");
     RunTest(CanSelectDataboundItems);
 }
예제 #8
0
 public void OneTimeSetUp()
 {
     this.application = Application.AttachOrLaunch(StartInfo.DemoProject);
     this.window = this.application.GetWindow("MainWindow");
     this.languageComboBox = this.window.Get<ComboBox>(AutomationIds.LanguagesComboBoxId);
 }
예제 #9
0
 public void Setup()
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>(SearchCriteria.ByAutomationId("AComboBox"));
 }