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

Tester for System.Web.UI.HtmlControls.HtmlAnchor
Inheritance: HtmlControlTester
Show file Open project: vcsjones/NUnitAsp Class Usage Examples

Public Methods

Method Description
Click ( ) : void

Click the link. Supports postback and pop-up windows.

HtmlAnchorTester ( string htmlId ) : System

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

HtmlAnchorTester ( 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.

HtmlAnchorTester ( string xpath, string description ) : System

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

HtmlAnchorTester ( 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
HtmlAnchorTester ( string aspId, Tester container, bool runAtServer ) : System

Method Details

Click() public method

Click the link. Supports postback and pop-up windows.
public Click ( ) : void
return void

HtmlAnchorTester() public method

Create a tester for an HTML tag. Use this constructor for testing most tags.
public HtmlAnchorTester ( 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

HtmlAnchorTester() 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 HtmlAnchorTester ( 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

HtmlAnchorTester() public method

Create a tester for an HTML tag using an XPath description.
public HtmlAnchorTester ( 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

HtmlAnchorTester() public method

Create a tester for an HTML tag that's on a page with multiple forms using an XPath description.
public HtmlAnchorTester ( 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