While working with WATIR I encountered a small bug that I would like to post the solution to here. It involves setting a file path in a fileField, which does not get set. I have only found this error in 1.5.1 and have not checked if it exists in previous versions. From what I have found, this development gem is very stable, with this being one of the first and only bugs that I have noticed.
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.rb to the set_text method from the setComboBoxText method.
The solution is to make your setComboBoxText method inside winClicker.rb look 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.