[Webtest] How to follow Frame which is defined in javascript

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Tue, 21 Nov 2006 07:13:14 -0800 (PST)


what do you get as message "Frame not found with name: followMe available:

In fact I would have said that this js could be interpreted correctly. Are
you sure that js execution comes until this point? Can you add something
like "alert('foo');" just after the document.write and look in the console
if this gets executed?


jkmuc wrote:
> Hello all,
> I have tried to find a clue on my problem in the mailing-archive, but I 
> was getting confused :-( please forgive when I am doing "double-posting".
> I want to test part of a website which is embedded in an iframe. The 
> iframe is not defined directly in HTML but via javascript:
> document.write("<iframe id='followme' name='followme' 
> src='http://www.hereistheframecontent.com/'>");
> document.write("</iframe>");
> Now trying the webtest step "followFrame" as
> <followFrame name="followme"/>
> fails ("Frame not found with name followme").
> Obviously the parser doesn't find any HTML code which is rendered by 
> javascript.
> Is it possible to handle this with webtest?
> Thanks for any hint,
> Bernd
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest

View this message in context: http://www.nabble.com/How-to-follow-Frame-which-is-defined-in-javascript-tf2659078.html#a7472991
Sent from the WebTest mailing list archive at Nabble.com.