[Webtest]

webtest@lists.canoo.com ">webtest@lists.canoo.com
Mon, 28 Nov 2005 15:22:17 GMT


Hi, I found a solution for my problem.
Actually, this script works when it's called by the "onload" tag: 

for (i = 0; i < myTab.length; i++) {			
				var elt=document.createElement("option");
				elt.value = myTab[ i ].code;
				elt.text = myTab[ i ].libelle;				myListBox.options[myListBox.length] =
elt;				
			}

though this one does not:


for (i = 0; i < myTab.length; i++) {
				myListBox.options[i].value = myTab[ i ].code;
				myListBox.options[i].text = myTab[ i ].libelle;
			}

That might be useful to know !


Emile.



Marc Guillemot écrit:

> Salut Emile,
> 
> jsp doesn't matter, webtest receives only the generated html code.
> 
> htmlunit (the underlying "browser") has no problem with the body's 
> onload. Can you give an example of your code. Is it well formed?
> 
> Marc.
> 
> efeltesse@ebusinessinformation.fr wrote:
> > Hi all,
> > 
> > WebTest seems to be unable to open jsp that start with javascript functions
> > called by the 'onload' attribute of the <body> tag.
> > 
> > Can you follow me?
> > 
> > That causes me a very big problem, as I just can't get rid of these js
> > functions and as I really have to test wy webApp !
> > 
> > Thank you for any help !
> > 
> > Emile, Paris.
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> > 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest