Bugs item #980105, was opened at 2004-06-25 21:03 Message generated for change (Settings changed) made by jimweaver You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=980105&group_id=61302
Category: None >Group: Release 1.3 >Status: Closed Resolution: Fixed Priority: 2 Submitted By: Jacques Morel (jacmorel) Assigned to: Jim Weaver (jimweaver) Summary: Cannot extend HttpUnitDialog to create custom clickLink Initial Comment: HttpUnitDialog does not allow to create custom clickLink. I am trying to do a clickLink that can locate a link with html body, so links like <a href=#"><em>A</em>dd project</a> can be found by their full html body (here "<em>A</em>dd project") and be clicked on. For this I need to locate the WebLink myself and then click it. Unfortunately I can click the link but I cannot change "resp" in the dialog. So for the dialog I haven't clicked anything ;-( So please make resp or submitRequest() protected. ---------------------------------------------------------------------- Comment By: Jim Weaver (jimweaver) Date: 2004-09-13 17:30 Message: Logged In: YES user_id=619947 OK - have done, will be in next release. This approach to finding a link seems pretty painful though ;-). Is it a third-party app you are testing? If it's an app under your control, I'd advise using an id to access links rather than link text or full html body. ---------------------------------------------------------------------- Comment By: Jacques Morel (jacmorel) Date: 2004-06-25 21:09 Message: Logged In: YES user_id=149446 I just realize I am extending WebTester not HttpUnitDialog. So either be able to 1. inject a custom dialog into a custom WebTester (constructor arg or setter) and make HttpUnitDialog.resp settable by derived class or 2. have a public "resp" setter in the HttpUnitDialog. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=980105&group_id=61302 ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Jwebunit-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
