protected override void SetUp()
 {
     base.SetUp();
     button   = new HtmlInputButtonTester("button");
     formVars = new DataGridTester("formVars", CurrentWebForm);
     Browser.GetPage(BaseUrl + "HtmlTester/HtmlInputButtonTestPage.aspx");
 }
Beispiel #2
0
        protected override void SetUp()
        {
            button1A = new HtmlInputRadioButtonTester("button1A");
            button1B = new HtmlInputRadioButtonTester("button1B");
            postback = new LinkButtonTester("postback");
            formVars = new DataGridTester("formVars", CurrentWebForm);

            Browser.GetPage(BaseUrl + "HtmlTester/HtmlInputRadioButtonTestPage.aspx");
        }
        public void GridViewExample()
        {
            DataGridTester gridview = new DataGridTester("gv");

            base.Browser.GetPage(@"http://localhost/test/WebTestIntro/GridViewExample.aspx");

            AssertVisibility(gridview, true);
            Assert.Greater(gridview.RowCount, 0, "No rows in grid view");
        }
Beispiel #4
0
        protected override void SetUp()
        {
            base.SetUp();
            grid1        = new DataGridTester("dataGrid1", CurrentWebForm);
            grid2        = new DataGridTester("dataGrid2", CurrentWebForm);
            clickResult  = new LabelTester("clickResult", CurrentWebForm);
            headerResult = new LabelTester("headerResult", CurrentWebForm);

            Browser.GetPage(BaseUrl + "AspTester/DataGridTestPage.aspx");
        }
Beispiel #5
0
        protected override void SetUp()
        {
            base.SetUp();

            name     = new TextBoxTester("name", CurrentWebForm);
            comments = new TextBoxTester("comments", CurrentWebForm);
            save     = new ButtonTester("save", CurrentWebForm);
            book     = new DataGridTester("book", CurrentWebForm);

            // we use GuestBook.Web as a test target web
            host = AspFixtureHost.CreateInstance("/testweb", "../../../../src/GuestBook.Web", this);
            // note new pseudo-protocol "asptest" here and that virtual paths are *always* app-relative:
            //Browser.GetPage("http://localhost/NUnitAsp/sample/tutorial/GuestBook/GuestBook.aspx");
            Browser.GetPage("asptest://./GuestBook.aspx");
        }