Installed rubyinstaller-1.9.2-p136 and ran the the following commands in the cmd prompt.
gem update –system
gem install watir.
The commands got executed successfully. But when i ran a ruby script with the following contents in it, i am getting the error “The program can’t start because msvcrt-ruby18.dll is missing from your computer. Try reinstalling the program to fix this problem. ” I tried reinstalling it multiple times, but no luck.
I google around and found the msvcrt-ruby18.dll file. But i don’t know what i should do with it. Please help!
Contents of my ruby file:
require ‘watir’
ie = Watir::IE.new
ie.goto(‘http://www.google.com’)
To fix this error, we need to register the autoit dll “AutoItX3.dll”. In my machine the dll is located at C:\Ruby192\lib\ruby\gems\1.9.1\gems\rautomation-0.6.3\ext\AutoItX. So, you need to goto this folder in command prompt and execute “regsvr AutoItX3.dll”. That fixed the problem