Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

How to capture basic HTML controls using WatiN

0.00/5 (No votes)
3 Oct 2013 1  
How to capture basic HTML controls using the WatiN control.

Introduction

Web application controls can be captured using the WatiN class. The WatiN class has all the controls corresponding to HTML elements. Sometime it is very confusing for the programmer to identify the ASP.NET control and the WatiN control.

Following are illustrations of capturing some HTML controls:

Textbox

HTML Element: <input type=text/>

WatiN class: TextField

dd1.png

Dropdown

HTML Element: <Select/>

WatiN class: SelectList

dd2.PNG

FileUpload

HTML Element: <input type=file/>

WatiN class: FileUpload

d3.png

Checkbox

HTML Element: <input type=checkbox/>

WatiN class: CheckBox

dd4.png

Radiobutton

HTML Element: <input type=radio/>

WatiN class: RadioButton

dd5.png

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here