Hi,

 

I am using JWebUnit to click a link which calls a JavaScript function
and opens a new window with some text on it I want to assert the text on
window.

 

For e.g.

 

<a
href='javascript:smallPopUpText("<p><b>Specific%20Notes:</b><ul><li>Beca
use%20of%20dfgdfgdf%20sensitivity%20to%20dfgdfgdf%20in%20elderly%20patie
nts,%20smaller%20dfgdfgdf%20may%20be%20fdgdfgdf%20as%20well%20as%20safer
.%20%20Total%20daily%20doses%20should%20rarely%20exceed%20the%20suggeste
d%20maximum.</li></ul></p>");'>More information</a>

 

smallPopUpText writes the text in newly opened window.

 

My issues is that when I click on link JWebUnit appends the text in href
with the link of my current page for e.g. if the link is
http//:localhost:8080/servet/xyz it makes something like

 

http//:localhost:8080/servet/
Specific%20Notes:</b><ul><li>Because%20of%20dfgdfgdf%20sensitivity%20to%
20dfgdfgdf%20in%20elderly%20patients,%20smaller%20dfgdfgdf%20may%20be%20
fdgdfgdf%20as%20well%20as%20safer.%20%20Total%20daily%20doses%20should%2
0rarely%20exceed%20the%20suggested%20maximum.

 

Whole text is appended.

 

But the new window which opens is having the same
URL(http//:localhost:8080/servet/xyz) as my current page so it gives 404
error please suggest a solution.

 

**Julien I am sending this on development list but sometimes my email
bounces from there if you can answer my query it will be great help.

 

Regards

Rajinder

------------------------------------------------------------------------------

_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to