Bugs item #3570132, was opened at 2012-09-20 08:21 Message generated for change (Settings changed) 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: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: Sebastian (sebastian2303) >Assigned to: Nobody/Anonymous (nobody) 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-11-27 08:03 Message: Please reopen with a reproducible test case. ---------------------------------------------------------------------- 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 ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ JWebUnit-development mailing list JWebUnit-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-development