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>(); }
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>(); }
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); }
public void Setup() { ComboBoxUnderTest = MainWindow.Get<ComboBox>("EditableComboBox"); }
protected override void ExecuteTestRun(WindowsFramework framework) { ComboBoxUnderTest = MainWindow.Get<ComboBox>("DataBoundComboBox"); RunTest(CanSelectDataboundItems); }
public void OneTimeSetUp() { this.application = Application.AttachOrLaunch(StartInfo.DemoProject); this.window = this.application.GetWindow("MainWindow"); this.languageComboBox = this.window.Get<ComboBox>(AutomationIds.LanguagesComboBoxId); }
public void Setup() { ComboBoxUnderTest = MainWindow.Get<ComboBox>(SearchCriteria.ByAutomationId("AComboBox")); }