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
<http://jwebunit.sourceforge.net/apidocs/net/sourceforge/jwebunit/junit/WebTestCase.html#setExpectedJavaScriptConfirm%28java.lang.String,%20boolean%29>
("The message in the popup"
<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> , 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