Hi Bret,
I would like to add something here.
1. In the file 'winClicker.rb' and method 'clickJSDialog_NewProcess()'
myapp = "[EMAIL PROTECTED]/clickJSDialog.rb #{button}"
winsystem(" start #{myapp}")
Now this thing will not work if user has configured to open the files with
'.rb' extension with some editor like Notepad, wordpad, gvim etc. So what I
suggest is to change the myapp variable to include ruby interpreter also
like this:
myapp = "ruby [EMAIL PROTECTED]/clickJSDialog.rb #{button}"
This will use ruby interpreter to open the file no matter what user has
configured on his/her machine. I faced this problem during testing on my
machine.
Similarly, we need to append ruby interpreter in the function
'setFileRequesterFileName_newProcess' which is used to set FileName in the
file_field control.
Correct me if I am wrong here.
Regards,
Angrez
On 1/11/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:
John Lolis wrote:
> I registered AutoItX3.dll using regsvr32 and it got rid of the error
message, the problem now is it doesn't fill in the field with any text. I
can flash it, so i know I have the right field - I just can't put anything
in there.
>
> any more ideas?
>
Today I checked in fixes for both this and the other problem (autoit
registration). These are NOT in today's dev gem, but will be in the next
one. You can pull them from trunk if you like.
A workaround for this problem for earlier versions of 1.5 is this:
1. Manually register autoit:
>regsvr32 AutoItX3.dll
2. Add a call to click:
ie.file_field(:id, 'DriverFileUpload_DriverFileUpload').set(filename)
ie.file_field(:id, 'DriverFileUpload_DriverFileUpload').click
Please let us know if either of these solutions does not fix this
problem for anyone.
Bret
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general