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==[])
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 {
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
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