just_add_watir | Advanced recipes for Watir
7Aug/08Off

Q. Which method do I use with which element?

button <input> tags with type=button, submit, image or reset
radio <input> tags with the type=radio; known as radio buttons
check_box <input> tags with type=checkbox
text_field <input> tags with the type=text (single-line), type=textarea (multi-line), and type=password
hidden <input> tags with type=hidden
select_list <select> tags, known as drop-downs or drop-down lists
label <label> tags (including "for" attribute)
span <span> tags
div <div> tags
p <p> (paragraph) tags
link <a> (anchor) tags
table <table> tags, including row and cell methods for accessing nested elements
image <img> tags
form <form> tags
frame frames, including both the <frame> elements and the corresponding pages
map <map> tags
area <area> tags
li <li> tags
Tagged as: , No Comments