Currently JWebUnit only support exact matching of the javascript 
alert/confirm/prompt boxes. It could be a good addition to support regexp 
matching (with wildcard), feel free to open a feature request (or better a 
patch because I don't have much time to do it myself).

Regards,

Julien



________________________________
De : "Singh-2, Rajinder" <[email protected]>
À : JWebUnit Development mail list <[email protected]>
Envoyé le : Lundi, 9 Mars 2009, 12h42mn 50s
Objet : Re: [JWebUnit-development] Re :  Help:JwebUnit Testing

 
 
I tried to work with the suggested
solution But the problem in my case  is that
JavaScript method calls the servlet which creates
a runtime message due to which I am unable to do it using suggested method.
Is there any way possible in which if I know
that pop is going to come I can ‘Cancel’ it so as to stop the
workflow.
 
Regds
Rajinder
 
 

________________________________
 
From:Julien HENRY
[mailto:[email protected]] 
Sent: Monday, March 09, 2009 4:30
PM
To: JWebUnit Development mail list
Subject: [JWebUnit-development] Re
: Help:JwebUnit Testing
 
Hi,

You can use:
setExpectedJavaScriptConfirm("The message in the popup",
false); // false means you click on cancel
BEFORE clicking on the link.


Regards,

Julien
 

________________________________
 
De :"Singh-2, Rajinder" <[email protected]>
À : [email protected]
Envoyé le : Lundi, 9 Mars 2009,
8h20mn 26s
Objet : [JWebUnit-development] Help:JwebUnit Testing
Hi,
 
When I click on a particular link a JavaScript popup comes
which has two buttons I want to click the cancel button..
How can I do it using JWebUnit (I am unable to do it as it
is a JavaScript popup).
 
Please help.
 
Regds
Rajinder


      
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to