I am trying Watir with OCRA and found 2 problem.
1: AutoItX3.dll problem.
OCRA didn't pack AutoItX3.dll along with exe application package. --dll option only support bin Dir can not callable from Watir gem folder.
I patch #add extra DLLs as follow and have to use --dll ../lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/AutoItX3.dll
# Add extra DLLs
Ocra.extra_dlls.each do |dll|
sb.createfile(File.expand_path(File.join(bindir, dll)), (File.join("bin", dll).gsub(/bin\/\.{2}\//, '')).tr('/','\\'))
end
2: Watir::winClick cannot run because rubyw not found at runtime with OCRA exe file.
Looking for a way to add PATH ENV variable with ruby bin folder where locate on runtime. Please inform me how to get temp DIR at the runtime.
Thank.
|