Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to control browser pop-up file selection form
#3
el.SetText and el.el.setAttribute("value"...) don't work with file fields. Accessible object's a.SetValue too.

key should work.

Code:
Copy      Help
act win(" Internet Explorer" "IEFrame")
Htm el=htm("INPUT" "file" "" win(" Internet Explorer" "IEFrame") 0 0 0x221)
el.SetFocus
key "file.zip"

Code:
Copy      Help
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)