HtmlSelectTester Constructor (String, Tester)

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 HtmlSelectTester(
   string aspId,
   Tester container


The ID of the control to test (look in the page's ASP.NET source code for the ID).
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.

See Also

HtmlSelectTester Class | NUnit.Extensions.Asp.HtmlTester Namespace | HtmlSelectTester Constructor Overload List