I'm starting to sound like a broken record and was just thinking about updating the user guide for this. Use the ie developer toolbar to find controls and identify them, while being familiar with the html source and some basic knowledge around the dom is important, this will also help:
<br><br><a href="http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
</a><br><br>-Charley <br><br><div><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">Ken</b> <<a href="mailto:forum-watir-users@openqa.org">forum-watir-users@openqa.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I just got started with this and am trying to write a simple script to get my feet wet. I was following the googlesearch.rb case that is provided. My question is how do you find the name of the object that you want to perform an action with? For example:
<br><br>ie.text_field(:name, "q").set("pickaxe") # q is the name of the search field<br><br>How do you know that q is the name of the search field? I viewed the source of the page and eventually found the field named q but it was not obvious or easy. It was so murky that if I didnt know already that the fields name was q I never would have found it. Is there a simple way to identify a list box, text field, radio button...etc?
<br><br>Thanks.<br>_______________________________________________<br>Wtr-general mailing list<br><a href="mailto:Wtr-general@rubyforge.org">Wtr-general@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/wtr-general">
http://rubyforge.org/mailman/listinfo/wtr-general</a><br></blockquote></div><br>