From: <al...@go...> - 2004-04-30 10:23:16
|
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 =3D ... Page frame1 =3D ... Page frame2 =3D ... Page frame3 =3D ... do some action in frame2 that updates frame3 and=20 'forget' the reusult: somebutton.click(); instead of=20 frame3 =3D somebutton.click(); and get the page in the 3rd frame from the frameset direct: frame3 =3D ... Do some like=20 List frames =3D frameset.getFrames(); frame3 =3D frames.get(2); or frame3 =3D ((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 |