NUnitAsp

HtmlInputButtonTester 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 HtmlInputButtonTester(
   string aspId,
   Tester container
);

Parameters

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

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