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 some
You should be able to use JavaScript to make these things.
For example, I have this select list on my page:
0
one
Now, in Watir I could do something like this with JavaScript:
script = %q {
opt=document.createElement('option');
On Apr 12, 2:49 pm, Jarmo Pertman 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 Groups
"Watir G
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==[])
f