From: Vikash Kumar Date: 2006-12-20T12:53:27+09:00 Subject: clicking on popup after selecting an item in select list I am getting a javascript pop up after I select a value from some drop down list using the select_list method. Since I can not use click_no_wait for a list, how am I supposed to handle the pop up. Can anyone please provide a solution for it. I am using the following code to assess a select list, I am using Watir Version 1.5.1.1100 The code is as follows : require 'watir' # the watir controller require 'watir/winClicker.rb' require 'watir\contrib\enabled_popup' require 'Enter_on_inputbox' enter_on_inputboxObj = Enter_on_inputbox.new instance = "c:\\aa.htm" ie=Watir::IE.start(instance) #THIS PART IS WORKING, using click_no_wait ie.image(:index,'4').click_no_wait enter_on_inputboxObj.startClicker(ie, $hwnd, "OK", 7, "Good") ############################### ie.select_list(:name, "trx").select("First") # Here too a javascript box is coming, but I am unable to click on the OK button I have defined a class name Enter_on_inputbox require 'watir/winClicker.rb' class Enter_on_inputbox def initialize end def startClicker( ie, hwnd, button , waitTime, user_input) hwnd = ie.enabled_popup(waitTime) # get a handle if one exists w = WinClicker.new if (hwnd) # yes there is a popup w = WinClicker.new if ( user_input ) print(user_input) $stdout.flush w.setTextValueForFileNameField(hwnd, "#{user_input}") end sleep 3 # I put this in to see the text being input it is not necessary to work w.clickWindowsButton_hwnd(hwnd, "#{button}") # "OK" or whatever the name on the button is w=nil # this is just cleanup end end end After it select the value from list, a javascript pop up comes asking for OK or Cancel, here my code get stops until I click manually on OK or Cancel Button, please help me out from this. Thanks in advance Vikash -- Posted via http://www.ruby-forum.com/.