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

Tester for System.Web.UI.HtmlControls.HtmlInputHidden
Inheritance: HtmlControlTester
显示文件 Open project: vcsjones/NUnitAsp

Public Methods

Method Description
HtmlInputHidden ( string htmlId ) : System

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

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

HtmlInputHidden ( string xpath, string description ) : System

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

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

Method Details

HtmlInputHidden() public method

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

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

HtmlInputHidden() public method

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

HtmlInputHidden() public method

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