Watir 188.8.131.526 was released yesterday, but FileField#set does not work. They have fixed it, but it is not released yet. But still, you can use all those shiny new Watir methods.
Roll your own Watir using TortoiseSVN. Just make sure that you are logged in as administrator during installation. I am usually logged in as limited user, and to make it short, it does not work that way. Please, log in as administrator. If you can not, then I can not help you.
From Installing a Gem from the latest development source (Watir FAQ page).
Once TortoiseSVN is installed, checkout the source:
- Create a folder to checkout into, this will be the watir_install_dir
- Right click on watir_install_dir, from the context menu select SVN Checkout...
- In the dialog box enter http://svn.openqa.org/svn/watir/trunk/watir for the url
- Hit Ok, Watir source should now download into the watir_install_dir
Now that you have your own local copy of the source, you can create your own gem and install it into your local ruby gems directory. Open a command line, navigate to watir_install_dir and type the following:
gem build watir.gemspec
This will create a file that is named something like watir.184.108.40.2062.gem. The actual version number will be based on the latest revision number of the source in subversion.
You can install your gem simply by typing this in the same directory:
gem install watir
Some things are still broken. Like IE#minimize.
Why?! And I was so close...
Do not despair, you can fix that too (are you lucky or what?).
AutoIt is not registered. They say it should be, but it does not work on my machine.
Open a command line, go to folder where AutoItX3.dll is located. If you installed Ruby to C:\ruby\ and your gem name is watir-220.127.116.111 it should be C:\ruby\lib\ruby\gems\1.8\gems\watir-18.104.22.1681\watir\.
Pop up will appear with message that registration was successful. If message says that registration was not successful, you are not logged in as administrator. Log out (or switch user) and log in as administrator. As I stated earlier, if you can not, then I can not help you.
You can unregister AutoIt with this if, for example, you have trouble with uninstalling Watir.
regsvr32 /u AutoItX3.dll