Hi Mark ,

 

I went through the code and had following doubts,

 

1)What is the use of  long Name ?

 

2) What is the use of short name?

 

Sorry if my questions sound too basic,

 

Thanks for the support

 

Regards

hrishij

 

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Monday, December 05, 2005 9:06 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] wait

 

I have had good success with this, although other claim they have not.

 

First I create this method:

 

    def startClicker( button , waitTime = 3)

       w = WinClicker.new

       longName = $ie.dir.gsub("/" , "\\" )

       shortName = w.getShortFileName(longName)

       c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{ waitTime} "

       puts "Starting #{c}"

       w.winsystem(c)

       w=nil

   end

 

Then I put this line right before the button that causes the _javascript_ popup like this:

 

      startClicker("OK" , 3)

      $ie.button("Submit").click:

 

That is all there is and it works pretty much every time.   Hope this helps,

 

--Mark


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hrishikesh Jamadagni
Sent: Sunday, December 04, 2005 10:05 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] wait

 

 

 

Hi

 

Well I am stuck with one issue

 

I click a submit  button which brings up a _javascript_

popup with the title "Microsoft Internet Explorer" and with

the text "Zip code should be 5 digit?". The

popup has one button: Ok.

 

This is what i have at the top of my script

require 'win32ole'

 

Watir script just hangs there without throwing any

errors.

 

Regards

hrishi

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to