[wtr-general] Re: Posting invalid form data with Watir

2009-05-20 Thread Paul Denize
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==[])

[wtr-general] Re: Posting invalid form data with Watir

2009-04-12 Thread Jarmo Pertman
You should be able to use JavaScript to make these things. For example, I have this select list on my page: select name=menu option value=0 selected0/option option value=1one/option /select Now, in Watir I could do something like this with JavaScript: script = %q {

[wtr-general] Re: Posting invalid form data with Watir

2009-04-12 Thread Jarmo Pertman
On Apr 12, 2:49 pm, Jarmo Pertman jarm...@gmail.com wrote: script = %q { Sorry, I had one extra space in here - %q {... Correct would be %q { (so, there's no space after %q) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: Posting invalid form data with Watir

2009-04-09 Thread Chuck van der Linden
not sure there is an easy way around this with Watir itself, since it's designed to drive the browser like a user would. Seems like for this kind of spoofing, where you are sending something that the browser won't normally allow, there are a couple of options. you already talked about using