public void TestMultipleForms_WhenBadAspId() { WebFormTester form1 = new WebFormTester("badId", Browser); LinkButtonTester one = new LinkButtonTester("one", form1); Browser.GetPage(TestUrl); one.Click(); }
protected override void SetUp() { base.Browser.UserLanguages = new string[1]; base.Browser.UserLanguages[0] = "en-US"; this.testURL = @"http://localhost/test/WebTestIntro/BirthdayClubMemberInfo.aspx"; this.form = new WebFormTester(base.Browser); this.txtMemberName = new TextBoxTester("txtMemberName"); this.ddlLanguages = new DropDownListTester("ddlLanguages"); this.btnAdd = new ButtonTester("btnAdd"); this.lblBirthdate = new LabelTester("lblBirthdate"); this.lblMessage = new LabelTester("lblMessage"); base.Browser.GetPage(this.testURL); Assert.AreEqual(this.testURL, base.Browser.CurrentUrl.ToString()); }
protected override void SetUp() { form1 = new WebFormTester("Form1", Browser); form2 = new WebFormTester("Form2", Browser); Browser.GetPage(TestUrl); }