From: Mike B. <mb...@Ga...> - 2004-10-16 00:31:42
|
Vinay Murthy wrote: > I used htmlunit to log onto a site having a couple of frames. To > confirm that I am at the right page, I tried dumping > (HtmlPage)page.asText() and I ended up with a message "Frames are > required. Microsoft IE 3.0 or greater and Netscape 2.0 or greater > support frames." > > Can somebody help me around two issues please ? > 1. asText() should return me the page as it is seen in the browser. > This I presume is the html of the page. Can I be validated here ? Right, although it appears that we haven't added specific handling for the noframe tag. > 2. I believe I havent been able to successfully get to the page I > needed because of the frames. Is there a way to get around this too ? The content for the frames has most likely already been loaded. You can call getEnclosedPage() on the HtmlFrame instance to get at the content inside that frame. > P.S: for the benefit of the list, I did like to mention that, https > connections fail on older versions of j2sdk 1.4 Interesting. I'll have to remember that one. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |