Hi Angrez,

Glad to see the reply on this topic, I know you are one of the
maintainers of firewatir. As far as I searched on internet, many guys
have the same problem on popup javascript window but not a clear
solution I saw.

Per your request, here is my ruby example code, I have removed some
unrelated stuff. I can confirm the text of the popup is correct.
//-----------------------------------------------------------------------------------------//
require 'rubygems'
require "firewatir"
include FireWatir

# set a variable
test_site = "10.10.10.1"

# open the browser
ff = FireWatir::Firefox.start(test_site)

authpage = ff.frame(:name,"authFrm")
authpage.text_field(:name, "userName").value = "admin"
authpage.text_field(:name, "pwd").value = "password"
authpage.button(:name, "Submit").click

ff.wait
clientSettings = ff.frame(:name,"tabFrame")
ff.wait
clientSettings.select_list(:name,"Iface").select("X0")
clientSettings.text_field(:name, "PPPStartIp").value = "192.168.168.1"
clientSettings.text_field(:name, "PPPEndIp").value = "192.168.168.100"
ff.startClicker("ok",1,'',"The configuration on this page will reset
all connections, are you sure to submit?")
clientSettings.button(:name,"applyButt").click      # here a
javascript window popup and never disappear

puts "End of test."
//---------------------------------------------------------//

Here I have another problem, it seems that ff.wait can't always work,
so somethime script will complain no finding of html element and quit.

Thanks

On 3月23日, 下午2时31分, Angrez Singh <[email protected]> wrote:
> Can you make sure that pop up text is correct? Also can you post your
> ruby/html code here so that we can help you better.
>
> - Angrez
>
> On Mon, Mar 23, 2009 at 7:37 AM, ajee <[email protected]> wrote:
>
> > Hi all, I have searched the Internet for a long time on this topic,
> > but there is no resolve I got. I know that somebody raises advice of
> > using startClicker, but when I use it, no use:
>
> > ff.startClicker("ok",1,'',"The configuration on this page will reset
> > all connections, are you sure to submit?")
>
> > In order to know why, I managed to compile jssh.xpi, to get into
> > firefox 3.0, adding some debug msg. By this, I saw jssh gets the
> > correct msg of startClicker from firewatir,  proxied_shell-
> > >ExecuteBuffer return NS_OK. So I don't  know how to go on, with this
> > popup javascript confirm window, Firefox can't proceed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to