From: <pas...@ya...> - 2004-05-03 09:21:10
|
Hi, Thanks Alexei. Just a last question. I use this code : List frames = frameset.getFrames(); My list contains 2 objects HtmlFrames. When I collect my page from the first HtmlPage of my list : HtmlFrame frameX = (HtmlFrame)frames.get(0) ; HtmlPage pageX = frameX.getPage() ; and I verify the title of this page, I receive the title of the page which contains frame and not the title of my first frame. ../.. pageX.getTitleText() I don't find the way to get my HtmlPage from this list. The list.get(0).getPage returns parent page and not the first frame page. I think that it must be simple but I don't find the way for moment. Pascal. --- al...@go... a écrit : > Hi Pascal, > > I was working with frameset of 3 frames that used to > update each > other wild and open plenty popups and new windows. I > used following > approach to avoid this kind of problems: > > I kept the 'frameset' available during the test: > > Page frameset = ... > > Page frame1 = ... > Page frame2 = ... > Page frame3 = ... > > do some action in frame2 that updates frame3 and > 'forget' the reusult: > > somebutton.click(); > instead of > frame3 = somebutton.click(); > > and get the page in the 3rd frame from the frameset > direct: > > frame3 = ... > Do some like > List frames = frameset.getFrames(); > frame3 = frames.get(2); > or > frame3 = ((HtmlFrame)(frames.get(2))).getPage(); > (I do not remember the methods names and return > types exactly - I > used HtmlUnit in Jan. last time, but this is the > idea) > > Hope this helps > > Alexei > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the > market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the > exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id66&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com |