Re: [Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-18 Thread Grzesiek
Hi, For me it works this way (watir-1.5.1.1166) require 'watir/contrib/enabled_popup' ie.button(:value, /#{valid_text}/).click_no_wait#pressing button after which popup shows hwnd = ie.enabled_popup(15) # get a handle if one exists if (hwnd)

Re: [Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-09 Thread SHALINI GUPTA
in second solution have u changed the path:- Thread.new{ system("ruby \"c:\\PSC\\jscriptExtraAlert.rb\"") } i mean to say jscriptExtraAlert...path.. search this file and specy path there... On 5/10/07, vamsi <[EMAIL PROTECTED]> wrote: Hi Shalini, Thank you very much for your response. How

Re: [Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-09 Thread vamsi
Hi Shalini, Thank you very much for your response. How ever i couldn't able to resolve my issue with these solutions. 1 soultion : giving error message as 'NoMethodError: undefined method `dir' for nil:NilClass' and not moving to the next line '$ie.button(:name,"button respon

Re: [Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-08 Thread SHALINI GUPTA
hi, U can use this code def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub("/" , "\\" ) shortName = w.getShortFileName(longName) c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " puts "Starting #{c}" w.winsystem(c) w=nil ###end of fun

[Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-08 Thread vamsi
My application having confirmation messages as "Pop up dialogue box". the application will not move to next page until you click on 'OK' button. the popup winodw will be like this.. Windows intrenet explorer