Once you got such an error, when you run in ruby:
Unknown OLE server: `AutoItX3.Control' (WI2OLERuntimeError)
that might mean you have not registed the AutoItX3.dll in your computer,
in current Watir version, AutoItX3.dll has been included in the watir folder,
so Run the command in "Run":
regsvr32 "C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll"
note: you need to pick up your own path of where AutoItX3.dll locates.
then you will not get the errors :)
learn AutoItX3, please go to http://www.autoitscript.com/autoit3/index.shtml
I just want to use it to handle the popup windows when writing Watir scripts
Thursday, January 08, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment