|
From: Pg <pg...@ad...> - 2003-09-13 16:33:31
|
Hi Community!.
I`m trying to call a javascript function
I'm trying to "simulate" a navigation over a Html page. So, if an =
element in the page has an associated event (like onmouseover), I want =
to run the Javascript code associated (if exists) with this event.=20
I tried using the Htmlpage.executeJavaScriptIfPossible method in this =
way:
Htmlpage.executeJavaScriptIfPossible( javascript_code, message, false, =
null) =20
Here is the code:
ScriptResult sr =3D =
page.executeJavaScriptIfPossible("document.Form1.Input1.value =3D =
'go!';", "error in go!", false, null);
The problem is that the new page I obtained in the ScriptResult Object =
returned by the the previous operation doesn't differ at all from the =
original page, when I was expecting a different value in the =
Form1.Input1.value attribute: 'go!'. This operation doesn=B4t throw any =
exception, it just pass..... but there`s no differences!!.
What am I doing wrong?.
Thanks.
Pablo Gallo.
|