Click here to Skip to main content
11,576,692 members (60,442 online)
Click here to Skip to main content

Tagged as

How to capture basic HTML controls using WatiN

, 3 Oct 2013 CPOL 5.3K 6
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)

Share

About the Author

MinniPandey
Tester / Quality Assurance
India India
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 4 Pin
URVISH_SUTHAR13-Oct-13 20:38
memberURVISH_SUTHAR13-Oct-13 20:38 
GeneralRe: My vote of 4 Pin
MinniPandey14-Nov-13 19:36
memberMinniPandey14-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 | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 3 Oct 2013
Article Copyright 2013 by MinniPandey
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid