Tester for System.Web.UI.WebControls.RadioButton
Inheritance: LabeledControlTester
示例#1
0
        public void TestAutoPostBack()
        {
            RadioButtonTester autoGroup1 = new RadioButtonTester("autoGroup1");
            RadioButtonTester autoGroup2 = new RadioButtonTester("autoGroup2");

            autoGroup1.Checked = true;
            Assert.IsTrue(autoGroup1.Checked, "autoGroup1 should be checked");
        }
示例#2
0
        protected override void SetUp()
        {
            base.SetUp();
            Submit = new LinkButtonTester("submit", CurrentWebForm);
            CheckBox = new RadioButtonTester("radionButton", CurrentWebForm);
            DisabledCheckBox = new RadioButtonTester("disabled", CurrentWebForm);

            groupedOne = new RadioButtonTester("groupedOne", CurrentWebForm);
            groupedTwo = new RadioButtonTester("groupedTwo", CurrentWebForm);

            Submit = new LinkButtonTester("submit", CurrentWebForm);
            Browser.GetPage(BaseUrl + "/AspTester/RadioButtonTestPage.aspx");
        }