C# Class NUnit.Extensions.Asp.HtmlTester.HtmlControlTester

Base class for all testers in HtmlTester namespace
Inheritance: HtmlTagTester
Show file Open project: vcsjones/NUnitAsp

Public Methods

Method Description
HtmlControlTester ( string htmlId ) : System

Create a tester for an HTML tag. Use this constructor for testing most tags.

HtmlControlTester ( string aspId, Tester container ) : System

Create a tester for a server-side HTML control or a tag that's on a page with multiple forms. Use this constructor when the HTML tag you are testing has the "runat='server'" attribute. Also use this tester when using the non-default webform or HttpClient.

HtmlControlTester ( string xpath, string description ) : System

Create a tester for an HTML tag using an XPath description.

HtmlControlTester ( string xpath, string description, Tester container ) : System

Create a tester for an HTML tag that's on a page with multiple forms using an XPath description.

Private Methods

Method Description
HtmlControlTester ( string aspId, Tester container, bool runAtServer ) : System

Method Details

HtmlControlTester() public method

Create a tester for an HTML tag. Use this constructor for testing most tags.
public HtmlControlTester ( string htmlId ) : System
htmlId string The ID of the control to test (look in the /// page's ASP.NET source code for the ID).
return System

HtmlControlTester() public method

Create a tester for a server-side HTML control or a tag that's on a page with multiple forms. Use this constructor when the HTML tag you are testing has the "runat='server'" attribute. Also use this tester when using the non-default webform or HttpClient.
public HtmlControlTester ( string aspId, Tester container ) : System
aspId string The ID of the control to test (look in the /// page's ASP.NET source code for the ID).
container Tester A tester for the control's container. /// (In the page's ASP.NET source code, look for the tag that the /// control is nested in. That's probably the control's /// container.) If testing a page with multiple forms or a non-default /// HttpClient, pass in the WebFormTester for the form this tag is within.
return System

HtmlControlTester() public method

Create a tester for an HTML tag using an XPath description.
public HtmlControlTester ( string xpath, string description ) : System
xpath string The XPath description of the tag.
description string A human-readable description of this tag (for error reporting).
return System

HtmlControlTester() public method

Create a tester for an HTML tag that's on a page with multiple forms using an XPath description.
public HtmlControlTester ( string xpath, string description, Tester container ) : System
xpath string The XPath description of the tag.
description string A human-readable description of this tag (for error reporting).
container Tester A tester for the control's container. A WebFormTester /// will usually be most appropriate.
return System