I ran into an issue with the fileField.set method not setting the text I
passed into it. I found that the issue was the call inside of
winClicker.rbto the set_text method from the setComboBoxText method.
The solution is to make your setComboBoxText method inside
winClicker.rblook like the following:
def setComboBoxText(hWnd , textToSet)
send_message = @User32['SendMessage', 'ILISS']
r ,rs = send_message.call(hWnd , WM_SETTEXT ,'',textToSet)
end
this may also be true for the setTextBoxText method.
Hopefully this will help those having issue with the fileField. Also, why
is the value of the fileField not exposed? It seems that this would be a
much more efficient way to assign a file path than to open a new dialog box,
and find the appropriate file and open it. why not just do ie.fileField(:id,
/someId/).value = 'myfile.ext'
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general