Found a solution....

ie.text_field(itemtype,itemname).value=text

works just fine.



Also use the same technique to select options (choice) in a combo
where that value may not already exist

      s = ie.select_list(itemtype,itemname)
      texts = s.getAllContents
      if (texts==[])
        fail "This function requires the list to contain at least one
value already"
      end
      o = s.option(:text,texts[0])
      o.setvalue(choice)
      s.select_value(choice)

Next will be unselecting all the radios ..., submitting forms with
fields not on the form, or without pressing any or the known submit
buttons.

These tests are intended to ensure the Server also validates inputs
and does not leave it to the Webpage.  If you dont understand why this
testing is important google OWASP, it is a serios threat to many
systems.  And users can do this using easily downloadable tools like
Firefox's tamperdata.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to