Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Lars Christensen
RE: Ocra with Watir::WinClick rubyw cannot found [ reply ]  
2009-11-22 12:31
You can get the temp dir from $0, e.g.

File.dirname(File.dirname($0))

By: U Lwin
Ocra with Watir::WinClick rubyw cannot found [ reply ]  
2009-10-09 20:17
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.