RE: [Webunitproj-users] RE: iFrame
Brought to you by:
dgan
|
From: <Eri...@al...> - 2002-11-18 17:16:43
|
Doron,
Thanks, that helped me out a lot. The frames we're working with are
DIVs and not FRAMEs.
So I'd like to add this block of code:
else if (tagName.equalsIgnoreCase("DIV"))
{
childTag=3D createFrame(el);
}
right after this block of code:
else if (tagName.equalsIgnoreCase("FRAME"))
{
childTag=3D createFrame(el);
}
Does this sound reasonable? Another tact would be to=20
add a getContent() to DefaultWebTag. I think I prefer
the first option.
Tell me what you all think.
--Erik
> -----Original Message-----
> From: Doron [mailto:dg...@sh...]
> Sent: Saturday, November 16, 2002 4:23 PM
> To: Ostermueller, Erik
> Cc: web...@li...
> Subject: Re: [Webunitproj-users] RE: iFrame
>=20
>=20
> Hi Erik,
>=20
>=20
> iFrame, your just asking for trouble aren't you? ;-)
>=20
> Looks like you have a frame that already exists called
> "idTextAccountNumberBackIframe". And the javascript=20
> code generates some
> text in there.
>=20
> Well, I believe the trick is to get the HTML=20
> from the FRAME __AFTER__
> it has been generated. Because if you ask for the HTML=20
> before its done
> generating you won't get what you expected and web unit=20
> caches this
> until you change pages to make it work faster.
>=20
> So the trick is to ask the frame for its=20
> content, have web unit ignore
> the cache, until you get what you expected. I can play=20
> with this on
> Monday if you don't get to it.
>=20
> Also on Monday I am going to add a class to do=20
> button pushing and text
> field entry for popups. This is specific to windows but=20
> will allow us to
> handle certain unexpected scenarios (dialogs IE brings=20
> up which can not
> be suppressed).
>=20
> -Doron
>=20
>=20
>=20
> On Fri, 2002-11-15 at 14:38, Eri...@al... wrote:
> > The listserver didn't send this out for some reason.
> > Let's try this again.
> >=20
> > --Erik
> >=20
> > > -----Original Message-----
> > > From: Ostermueller, Erik=20
> > > Sent: Thursday, November 14, 2002 4:28 PM
> > > To: web...@li...
> > > Subject: iFrame
> > >=20
> > >=20
> > > Hello All (in the most 'Doron' sense of the word),
> > >=20
> > > I don't know the terminology for what I'm=20
> about to describe,=20
> > > so bear with me in my verbose explanation.
> > >=20
> > > If I right-click on a regular html page with no tricks
> > > and say view source, I'll get all the source for the=20
> > > entire page.
> > > That's the easy part.
> > >=20
> > > A web guy on our team who knows a lot more than me has
> > > put some 'iFrames' into our pages.
> > >=20
> > > If you right click on one of these babies and select=20
> > > 'view source',
> > > you get only the source for that iFrame. He=20
> tells me that
> > > the html is dynamically generated by java script.
> > >=20
> > > How can I use WebUnit to manipulate the html=20
> generated=20
> > > by this little iFrame thingy.
> > > The WebResponse doesn't contain this html. I=20
> need some=20
> > > way to drill down
> > > into this thing.
> > >=20
> > > Here is an example of the javascript that=20
> creates this thingy:
> > >=20
> > > var htmlAccountNumberFrameDocument =3D=20
> > > document.frames(=20
> "idTextAccountNumberBackIframe" ).document;
> > > =09
> > > htmlAccountNumberFrameDocument.write(=20
> > > "<html><head>");
> > > htmlAccountNumberFrameDocument.write(=20
> > > "<LINK REL=3D'STYLESHEET'=20
> HREF=3D'cc/stylesheets/usaa.css'=20
> > > TYPE=3D'text/css'><script type=3D'text/javascript'=20
> > > language=3D'JavaScript'=20
> > > src=3D'javascript/filterkeys.js'></script>" );
> > > htmlAccountNumberFrameDocument.write(=20
> > > "</head>" );
> > > htmlAccountNumberFrameDocument.write(=20
> > > "<body topmargin=3D'0' leftmargin=3D'0'=20
> scroll=3D'no'><INPUT=20
> > > TYPE=3D'TEXT' NAME=3D'textAccountNumber' VALUE=3D''=20
> > > MAXLENGTH=3D'16' ID=3D'idTextAccountNumber'=20
> > > STYLE=3D'width:100%;font-size:=20
> > >=20
> xx-small;border-right-style:none;border-right-width:0;'=20
> > >=20
> ONCLICK=3D'javascript:document.enablementGroup.toggle(this
> > > );' =
ONKEYPRESS=3D'javascript:FilterKeys.numbersOnly();'=20
> > >=20
> ONKEYUP=3D'javascript:document.enablementGroup.toggle(this
> > > );'></body>" );
> > > htmlAccountNumberFrameDocument.write(=20
> > > "</html>" );
> > > htmlAccountNumberFrameDocument.close();
> > >=20
> > >=20
> > > Thanks,
> > >=20
> > > --Erik
> > >=20
> >=20
> >=20
> > -------------------------------------------------------
> > This sf.net email is sponsored by: To learn the=20
> basics of securing=20
> > your web site with SSL, click here to get a FREE=20
> TRIAL of a Thawte=20
> > Server Certificate: http://www.gothawte.com/rd524.html
> > _______________________________________________
> > Webunitproj-users mailing list
> > Web...@li...
> > https://lists.sourceforge.net/lists/listinfo/webunitproj-users
>=20
>=20
>=20
|