you're welcome.
This type of problem can be difficult to deal with. Intertnationalization,
different browser versions and multiple browsers all conspire against us when
we do these types of things.
Paul
----- Original Message -----
From: John <[EMAIL PROTECTED]>
Date: Wednesday, February 28, 2007 9:15 am
Subject: Re: [Wtr-general] How to handle a text_field popup
> Paul:
>
> I wanted to thank you for your direction. It helped keep me focused.
>
> In the interest of closing this thread the solution I found was
> already on one of the 2006 posts by Mark Cain (and I'm sure a few
> others). I used the following routine:
>
> def jsAlert(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
>
> Then in the test I use jsAlert before the text_field box.
> jsAlert("OK",3)
> $ie.text_field(:id, "a1").set("200")
>
> I did go through several of the "available routines" in the forum
> and on the wiki, but this worked on an object without a
> 'click_no_wait' .
> -------------------------------------------------------------------
> --
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=6683&messageID=19357#19357
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general