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

Tester for System.Web.UI.HtmlControls.HtmlInputImage
Inheritance: HtmlControlTester
Exibir arquivo Open project: vcsjones/NUnitAsp Class Usage Examples

Public Methods

Method Description
Click ( ) : void

Click the image button in the upper-left corner (coordinates '0, 0').

Click ( int x, int y ) : void

Click the image button at the specified coordinates.

HtmlInputImageTester ( string htmlId ) : System

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

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

HtmlInputImageTester ( string xpath, string description ) : System

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

HtmlInputImageTester ( 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

Click() public method

Click the image button in the upper-left corner (coordinates '0, 0').
public Click ( ) : void
return void

Click() public method

Click the image button at the specified coordinates.
public Click ( int x, int y ) : void
x int
y int
return void

HtmlInputImageTester() public method

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

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

HtmlInputImageTester() public method

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

HtmlInputImageTester() public method

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