With the help of autoit and AU3Info.exe, in IRB I've managed to capture the pop
up window, confirm that a disabled drop down list is disabled, and show and
hide the items in the drop down list. I haven't been able to select any items
in the list, send a down to move down the opened drop down list or click the OK
or Cancel button. AU3Info.exe tells me that the pop up is a TridentDlgFrame.
IRB code so far
require 'win32ole'
autoit = WIN32OLE.new('AutoItX3.Control')
autoit.WinWaitActive "New Document Details Selection -- Web Page Dialog"
autoit.ControlCommand("New Document Details Selection -- Web Page Dialog", "",
"22", "IsEnabled", "")
autoit.ControlCommand("New Document Details Selection -- Web Page Dialog", "",
"8", "ShowDropDown", "")
autoit.ControlCommand("New Document Details Selection -- Web Page Dialog", "",
"8", "HideDropDown", "")
????autoit.Send( "{DOWN}")
Tim
________________________________ From: [EMAIL PROTECTED] on behalf of Paul Rogers Sent: Fri 29/07/2005 10:00 a.m. To: [email protected] Subject: RE: [Wtr-general] Modal Dialog with Select lists Watir cant access these modal dialogs, various people have tried diferent things. Maybe you can do something with auto-it - I personally havent tried. If you get some code working, please post it to the list Paul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Feltham Sent: 28 July 2005 15:27 To: [email protected] Subject: [Wtr-general] Modal Dialog with Select lists Hello All, I've been having fun working with/evaluating WATIR and its looking pretty good. But our products have quite a few modal dialogs. I've got a simple ok,cancel dialog with the title "Microsoft Internet Explorer" to work with Thread.new { sleep 0.1; WindowHelper.new.push_confirm_button_ok } but on a more complex model dialog I haven't been able to even get the cancel button to work yet. I suspect its because the name of the pop up window is "New Document Details Selection -- Web Page Dialog" instead of "Microsoft Internet Explorer". This modal dialog that I'm trying to automate has three select lists. The third one is disabled until specific items have been selected from the first two select lists. It then has a text box that holds a date (automatically filled so don't care about this for now), and OK and Cancel buttons. WindowHelper doesn't have any methods for setting values in select lists or for grabbing pop ups that are not titled "Microsoft Internet Explorer". What do I need to do to get this to work. I've had a bit of a look at autoit and presume I need to add some code into WinHelper.rb. I've only been using WATIR and Ruby for about a week though. Thanks, Tim
<<winmail.dat>>
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
