コード例 #1
0
ファイル: HtmlControlTests.cs プロジェクト: kasthurk/cuite
        [Ignore] // this test currently fails
        public void SelectItemByText_OnTelerikASPNETComboBox_Succeeds()
        {
            DemosOfTeleriksASPNETComboBoxControl pgPage = BrowserWindowUnderTest.Launch <DemosOfTeleriksASPNETComboBoxControl>(
                "http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx");

            pgPage.cbProduct.SelectItemByText("Tofu", 5000);
            pgPage.cbRegion.SelectItemByText("Bloomfield Hills", 5000);
            pgPage.cbDealer.SelectItemByText("Exotic Liquids", 5000);
            pgPage.cbPaymentMethod.SelectItemByText("American Express", 5000);
            pgPage.Close();
        }
コード例 #2
0
ファイル: HtmlControlTests.cs プロジェクト: kasthurk/cuite
        public void SetText_OnTelerikASPNETComboBox_SelectsItemByText()
        {
            DemosOfTeleriksASPNETComboBoxControl window = BrowserWindowUnderTest.Launch <DemosOfTeleriksASPNETComboBoxControl>(
                "http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx");

            window.Product.Text = "Tofu";
            Keyboard.SendKeys("{Tab}");   // close drop down menu
            window.Region.Text = "Bloomfield Hills";
            Keyboard.SendKeys("{Tab}");   // close drop down menu
            window.Dealer.Text = "Exotic Liquids";
            Keyboard.SendKeys("{Tab}");   // close drop down menu
            window.PaymentMethod.Click(); // America Express
            Keyboard.SendKeys("{Down}");  // MasterCard
            Keyboard.SendKeys("{Down}");  // Visa
            Keyboard.SendKeys("{Tab}");   // close drop down menu
            window.Close();
        }