Esempio n. 1
0
        public void TelerikTestStudioFrameworkBasicActions()
        {
            manager.ActiveBrowser.NavigateTo("http://automatetheplanet.com/healthy-diet-menu-generator/");
            HtmlInputSubmit      generateButton          = manager.ActiveBrowser.Find.ByName <HtmlInputSubmit>("_ninja_forms_field_28");
            HtmlInputCheckBox    additionalSugarCheckbox = manager.ActiveBrowser.Find.ById <HtmlInputCheckBox>("ninja_forms_field_18");
            HtmlInputText        firstNameTextInput      = manager.ActiveBrowser.Find.ByXPath <HtmlInputText>("//*[@id='ninja_forms_field_23']");
            HtmlSelect           burgersSelect           = manager.ActiveBrowser.Find.ByName <HtmlSelect>("ninja_forms_field_21");
            HtmlInputRadioButton coffeeRadioButton       = manager.ActiveBrowser.Find.ByExpression <HtmlInputRadioButton>("value=^1 x Trenta");


            coffeeRadioButton.Check(isChecked: true, invokeOnChange: true, invokeOnClickChanged: true);
            burgersSelect.SelectByText("10 x Double Cheeseburgers");
            firstNameTextInput.Text = "Anton";
            additionalSugarCheckbox.Check(isChecked: true, invokeOnChange: true, invokeOnClickChanged: true);
            generateButton.Click();
        }