8 messages in com.canoo.lists.webtestRe: [Webtest] javascript behind the l...
FromSent OnAttachments
Michael Zwick28 Mar 2007 00:58 
Michael Habbert28 Mar 2007 01:46 
Marc Guillemot28 Mar 2007 02:22 
Michael Zwick28 Mar 2007 02:33 
Michael Habbert28 Mar 2007 02:36 
Marc Guillemot28 Mar 2007 03:06 
Marc Guillemot28 Mar 2007 03:19 
Michael Zwick28 Mar 2007 04:57 
Subject:Re: [Webtest] javascript behind the links
From:Marc Guillemot (mgui@yahoo.fr)
Date:03/28/2007 02:22:32 AM
List:com.canoo.lists.webtest

Hi,

javascript is enabled by default, so <enableJavaScript enable="true"> is only needed if you've disabled it previously.

Most of the time it's not the safer way to identify a link by its href but it shouldn't be the cause of the problem.

What do you get for an error? Is the link not found or does an error occur once it's clicked?

Marc.

Michael Habbert wrote:

Hi Michael,

did you activate the execution of JavaScript?

http://webtest.canoo.com/webtest/manual/enableJavaScript.html

this might work.

Michael

Michael Zwick wrote:

Hi,

On my HTML pages there are java scripts behind some of the links that look like this: href="javascript:{this.document.form.p_spg_id.value = 2; this.document.form.submit()}"

So I'm wondering how to access the pages or to "click these links". The following doesn't do the job (but is exactly what I'd like to do): <clickLink description="Click link" href="javascript:{this.document.form.p_spg_id.value = 2; this.document.form.submit()}" />

Maybe the solution would be to somehow change the p_spg_id value "manually" and submit the changed form?!

I'd appreciate any help, many thanks in advance.

[...]