[Webtest]

Marc Guillemot ">webtest@lists.canoo.com
Wed, 30 Nov 2005 12:03:09 +0100


Hi Emile,

I've tried to reproduce your code that doesn't work in htmlunit and it 
doesn't seem to work in FF and IE. New options can't be added just by 
accessing a non-existing index in the options array. Are you sure that 
it works in a real browser? Can you provide a small html/js illustrating it?

Marc.

efeltesse@ebusinessinformation.fr wrote:
> 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
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>