From: Max Russell Date: 2008-01-10T23:01:25+09:00 Subject: win32ole called from watir script I've been using WATiR to test a website. At one point, a VBScript dialogue is shown which needs a Yes No response. I found that I can manually browse to the page, and then using the win32ole library, send a yes value to the dialogue. require 'win32ole' wsh = WIN32OLE.new('WScript.shell') wsh.AppActivate('INR Check') wsh.SendKeys('y') however, if I use similar code within the script itself, it doesn't seem to execute? I'm nt quite sure how to proceed with this.. -- Posted via http://www.ruby-forum.com/.