Usage of confirmHandler / allertHandler

View: New views
3 Messages — Rating Filter:   Alert me  

Usage of confirmHandler / allertHandler

by s e-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,


I try to figerout how to use the confirmHandler and allertHandler but i can't find any good example that i can use in my test.
In my test i get a popup and it has a save button , when ik click save then it wil prompt with an confirmbox it says Ok or Cancel i know this becouse i used IExplorer to do the same test as with HtmlUnit.
I want to get the confirm box to set it to "OK" .
can someone help?
please send some example code how to this.
I have the same problem with using allertHandler in my script.

Br,
Said

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

Re: Usage of confirmHandler / allertHandler

by Ahmed Ashour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
 
Ahmed
----
Blog: http://asashour.blogspot.com

From: s e <said.ennahachi@...>
To: htmlunit-user@...
Sent: Sat, October 24, 2009 3:13:21 PM
Subject: [Htmlunit-user] Usage of confirmHandler / allertHandler

Hi All,


I try to figerout how to use the confirmHandler and allertHandler but i can't find any good example that i can use in my test.
In my test i get a popup and it has a save button , when ik click save then it wil prompt with an confirmbox it says Ok or Cancel i know this becouse i used IExplorer to do the same test as with HtmlUnit.
I want to get the confirm box to set it to "OK" .
can someone help?
please send some example code how to this.
I have the same problem with using allertHandler in my script.

Br,
Said

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

Re: Usage of confirmHandler / allertHandler

by s e-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Thanks for  quick replay.
I read that artikel and i did try that, it does not work.
I am new to HtmlUnit and Java.
The alert is created by IExplorer ( IE has restricted this file from showing active contant that could access you computer) you have to click on "allow blocked contend".

and am stil do not have any clue to use the confirmHandler so that i can click "Ok" in the confirmBox.
This is the most importend for me to solve to finish my test.
so any help on this one  i really preciate it.

Br,
Said 

2009/10/24 Ahmed Ashour <asashour@...>
Hi,
 
 
Ahmed
----
Blog: http://asashour.blogspot.com

From: s e <said.ennahachi@...>
To: htmlunit-user@...
Sent: Sat, October 24, 2009 3:13:21 PM
Subject: [Htmlunit-user] Usage of confirmHandler / allertHandler

Hi All,


I try to figerout how to use the confirmHandler and allertHandler but i can't find any good example that i can use in my test.
In my test i get a popup and it has a save button , when ik click save then it wil prompt with an confirmbox it says Ok or Cancel i know this becouse i used IExplorer to do the same test as with HtmlUnit.
I want to get the confirm box to set it to "OK" .
can someone help?
please send some example code how to this.
I have the same problem with using allertHandler in my script.

Br,
Said

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user