Hello people,
In our application, there is a button named 'Export', which when clicked would
give a 'File Download' dialog box with three options, Open, Save and Cancel. I
am able to click these buttons with the 'clickWindowsButton' command (for ex.
'clickWindowsButton ('File Download','Save')). But I do not know how to enter
the file path in the subsequent 'Save As' dialog box and then click the 'Save'
button in the same. I tried,
clicker = WinClicker.new
hwnd = clicker.getWindowHandle('Save As')
I am not able to get the 'handle' of the 'Save As' dialog box. Watir returns
only '-1' for the 'handle'. If I could get the 'handle' of the 'Save As'
dialog box, I can make Watir type the file path in the same through the
command, 'setComboBoxText(handle,'the file path')'. I can then click the
'Save' button. Is my thinking correct? If not, what will be the ideal method
to type the file path in the 'Save As' dialog box. Also, how can I get the
handle of the 'Save As' dialog box.
Thanks for your time,
Vijay.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general