Re: R: [Httpunit-develop] getLinks
Brought to you by:
russgold
From: subir m. <sub...@ho...> - 2003-07-30 14:59:22
|
<html><div style='background-color:'><DIV> <P>hi,</P> <P>i dont need the links on the page,i need to choose an option that is in a select box on the page ,this select box is in the 4th form on my page,i am unable to access that form,i am able to access only the 1st form,my forms do not have ids.</P> <P>subir<BR><BR></P></DIV> <DIV></DIV>>From: Alejandro Ramirez <ARAMIREZ@CAIT.ORG> <DIV></DIV>>Reply-To: htt...@li... <DIV></DIV>>To: <HTTPUNIT-DEVELOP@LISTS.SOURCEFORGE.NET> <DIV></DIV>>Subject: Re: R: [Httpunit-develop] getLinks <DIV></DIV>>Date: Wed, 30 Jul 2003 09:44:49 -0500 <DIV></DIV>> <DIV></DIV>>You can get all the links on your page/frame with something like this: <DIV></DIV>> <DIV></DIV>> WebLink allLinks[] = response.getLinks(); <DIV></DIV>> <DIV></DIV>>This will be an array of all the links in your page/frame. <DIV></DIV>> <DIV></DIV>>Alejandro <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>On 7/30/03 8:36 AM, "massimiliano mauri" <MASSIMILIANO.MAURI@WISE-LAB.IT> <DIV></DIV>>wrote: <DIV></DIV>> <DIV></DIV>> > Hi <DIV></DIV>> > I have a similar problem. <DIV></DIV>> > Using HttpUnit-1.5.3, in a dinamic page (JSP) containing a frameset, it does <DIV></DIV>> > not find some links in nested tables contained in frames pages. <DIV></DIV>> > I operate correctly? <DIV></DIV>> > <DIV></DIV>> > String[] frameNames = webResp.getFrameNames(); <DIV></DIV>> > for(int i=0; i<FRAMENAMES.LENGTH; DIV < i++){>> > ... <DIV></DIV>> > WebResponse frameResponse = webResp.getSubframeContents(frameNames[i]); <DIV></DIV>> > ... <DIV></DIV>> > } <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > -----Messaggio originale----- <DIV></DIV>> > Da: htt...@li... <DIV></DIV>> > [mailto:htt...@li...]Per conto di <DIV></DIV>> > Russell Gold <DIV></DIV>> > Inviato: martedi 22 luglio 2003 23.51 <DIV></DIV>> > A: htt...@li... <DIV></DIV>> > Oggetto: Re: [Httpunit-develop] getLinks <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > On Thursday, July 17, 2003, at 10:12 PM, Hee (Ann) Ngu wrote: <DIV></DIV>> > <DIV></DIV>> >> Does getLinks() returns links embedded in table? <DIV></DIV>> > <DIV></DIV>> > It should. <DIV></DIV>> > <DIV></DIV>> >> I used getLinks() to retrieve the links of <DIV></DIV>> >> an html page with tables, but the no of links returned are not equal <DIV></DIV>> >> to what is displayed in netscape version 7.0 browser. Anybody <DIV></DIV>> >> encounter similar problem before? <DIV></DIV>> > <DIV></DIV>> > I would need more information to help you here. <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > ------------------------------------------------------- <DIV></DIV>> > This SF.net email is sponsored by: VM Ware <DIV></DIV>> > With VMware you can run multiple operating systems on a single machine. <DIV></DIV>> > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the <DIV></DIV>> > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 <DIV></DIV>> > _______________________________________________ <DIV></DIV>> > Httpunit-develop mailing list <DIV></DIV>> > Htt...@li... <DIV></DIV>> > https://lists.sourceforge.net/lists/listinfo/httpunit-develop <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > ------------------------------------------------------- <DIV></DIV>> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including <DIV></DIV>> > Data Reports, E-commerce, Portals, and Forums are available now. <DIV></DIV>> > Download today and enter to win an XBOX or Visual Studio .NET. <DIV></DIV>> > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 <DIV></DIV>> > _______________________________________________ <DIV></DIV>> > Httpunit-develop mailing list <DIV></DIV>> > Htt...@li... <DIV></DIV>> > https://lists.sourceforge.net/lists/listinfo/httpunit-develop <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.Net email sponsored by: Free pre-built ASP.NET sites including <DIV></DIV>>Data Reports, E-commerce, Portals, and Forums are available now. <DIV></DIV>>Download today and enter to win an XBOX or Visual Studio .NET. <DIV></DIV>>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 <DIV></DIV>>_______________________________________________ <DIV></DIV>>Httpunit-develop mailing list <DIV></DIV>>Htt...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/httpunit-develop <DIV></DIV></div><br clear=all><hr>Travel plans? Click here. <a href="http://g.msn.com/8HMCENIN/2746??PS=">Sit back & relax!</a> </html> |