2 messages in com.canoo.lists.webtestRe: [Webtest] How to follow Frame whi...
FromSent OnAttachments
Bernd Brenner18 Nov 2006 02:45 
Marc Guillemot21 Nov 2006 07:12 
Subject:Re: [Webtest] How to follow Frame which is defined in javascript
From:Marc Guillemot (mgui@yahoo.fr)
Date:11/21/2006 07:12:51 AM
List:com.canoo.lists.webtest

Hi,

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?

Marc.

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