01-18-2008, 11:32 PM
el.SetText and el.el.setAttribute("value"...) don't work with file fields. Accessible object's a.SetValue too.
key should work.
----
To click and don't wait, use el.ClickAsync. It is new in QM 2.2.1.
key should work.
act win(" Internet Explorer" "IEFrame")
Htm el=htm("INPUT" "file" "" win(" Internet Explorer" "IEFrame") 0 0 0x221)
el.SetFocus
key "file.zip"
act win("Mozilla Firefox" "MozillaUIWindowClass")
Acc a=acc("Browse..." "PUSHBUTTON" win("Mozilla Firefox" "MozillaUIWindowClass") "MozillaContentWindowClass" "" 0x1001 0 0 "previous")
a.Select(1)
key "file.zip"
----
To click and don't wait, use el.ClickAsync. It is new in QM 2.2.1.