Click here to Skip to main content
Click here to Skip to main content

How to capture basic HTML controls using WatiN

, 3 Oct 2013
Rate this:
Please Sign up or sign in to vote.
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

MinniPandey
Tester / Quality Assurance
India India
No Biography provided

Comments and Discussions

 
GeneralMy vote of 4 PinmemberURVISH_SUTHAR13-Oct-13 20:38 
GeneralRe: My vote of 4 PinmemberMinniPandey14-Nov-13 19:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 3 Oct 2013
Article Copyright 2013 by MinniPandey
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid