[Webtest] Question on support of javascript events
Marc Guillemot
webtest@lists.canoo.com
Wed, 05 Oct 2005 17:46:49 +0200
Hi Kishore,
MVS, Nanda Kishore wrote:
> Hi All,
>
> I am having a problem with select elements in html that fire
> javascript functions on onchange events. When I use <setSelectField>
> element, Canoo never seems to fire the onChange event or run the
> associated javascript function. For example, on change of one select
> box, the contents of another select box are filtered in my page. But
> the <setSelectField> element for the second select box doesn’t work
> since the onChange event for the first select box hasn’t fired to
> filter contents of second select box. I’d like to know if Canoo does
> not support such events or if my javascript is particularly bad.
>
onchange events are triggered when you use <setSelectField>. Do you have
any exception due to js code execution? Which build of webtest do you use?
> Arising from this, can I not call a javascript function declared in
> the page through the <scriptStep> element? For example, /<scriptStep>
> doSomeThing();</scriptStep>/ should work if doSomeThing() is a
> function defined in my page. But I get a message saying doSomeThing()
> is not defined. I have tried to explicitly enable javascript through
> <enableJavaScript> element also but to no avail. I would appreciate it
> greatly if someone can throw a little more light on the working of
> <scriptStep> element.
>
the <scriptStep> allow to script webtest but not to access the js inside
the loaded page.
Marc.