For anyone interested, I did get this to work after all - I needed to
add these two lines to my spec_helper.rb (or whatever setup file you
may be using):

$KCODE = "u"
WIN32OLE.codepage = WIN32OLE::CP_UTF8

Firefox then works with Japanese, German, etc - though some things are
a bit more limited than IE still. For example, you can do this in IE:

@browser.button(:value, "続行").click

But this won't work with non-English characters in FF... But unicode
strings in most other places do work, e.g.:

@browser.button(:id, "continue").value.should == "続行"

will pass... Selecting items from lists, etc is also working

BTW, what is happening with previous messages on Google groups? All my
previous messages on this thread are now blank...


You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to