[ptt-users] Problem handling javascript
adasal
adam.saltiel at gmail.com
Wed Jan 23 16:42:58 PST 2008
I have the following problem:-
In writing tests using java and jython it
I have found it is necessary to rely on htmlunit rather than the firefox
plugin.
I
I have 2 reasons to do this. I want a level of control such as looping and
variable assignmen as well as code intelligibility.
I want conditional
statments etc.
Is it
Is it possible to call scripts that have access to page elements and
populate vars from the firefox plugin? That is running a TesGen4Web script
through the plugin can it call resources such as other Jython scripts with
full access.
When I use htmlunit to emulate the browser I have problems with javascript
handling. Inspecting the javascript I notice
that they require initial conditions be set. I don't have the particular
script in front of me, but does anyone know how to do this?
Another
possibility is I
It is possible that in changing from HtmlUnit 1.1 to 1.4 I haven't
constructed BrowserVersion correctly. Because Jython fails in a strange way
it is possible that default values are used instead of
INTERNET_EXPLORER_6_0
I know I followed the docs on HtmlUnit that recommend using the service to
extract the string that represents the client browser and have attempted to
construct the BrowserVersion object with this as a string in the
constructor. There is no such constructor in the current documentation so I
guess this could be it?
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20080124/32bd8d3b/attachment.htm
More information about the Users
mailing list