Bugs item #3570132, was opened at 2012-09-20 08:21
Message generated for change (Comment added) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core API
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sebastian (sebastian2303)
Assigned to: Julien HENRY (henryju)
Summary: assertLinkPresentWithText() didot find the link

Initial Comment:
I tried to click a link which is present on the page response, but Jwebunit did 
not find the link. Tried other options (assertLinkPresentWithExactText()), did 
not work. This is the HTML source captured using getPageSource().

===================================================================================================================

<div class="ft">
                                                        <p>
<a href="DacView.do" rel="action" target="_self" title="Click here to 
deactivate your online account">Deactivate Online Account</a>
                                                        </p>
                                        </div>  
===================================================================================================================

Here are the couple of lines of Jwebunit code.

assertLinkPresentWithText(submit.getName());
clickLinkWithText(submit.getName());





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

>Comment By: Julien HENRY (henryju)
Date: 2012-09-21 01:54

Message:
Hi,

Do you know if the HTML fragment containing your link is added dynamically
to the page (using AJAX)? What is the version of JWebUnit you are using?
Can you try with something like:
clickElementByXPath("//a[@href='DacView.do']");

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

Comment By: Sebastian (sebastian2303)
Date: 2012-09-20 08:25

Message:
Please ignore the JwebUnit code above.

Here are the couple of lines of Jwebunit code.

assertLinkPresentWithText("Deactivate Online Account");
clickLinkWithText("Deactivate Online Account"));


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to