[Webtest] problem with frame

webtest@lists.canoo.com webtest@lists.canoo.com
Mon, 19 Apr 2004 15:51:52 +0000


Hi Lezoul,
I don't know why your clickbutton doesn't work, but you could try using the 'index' element, that has worked for me when I couldn't get clickbutton to work with name or label, for example:
    	 <clickbutton
		stepid="Click search"
		label="Search..." >
			<index value="5"/>
		</clickbutton>
-- LIsa


> Hi,
> I am a french student doing a training course and I must set up automatic tests
> on a web application with Web Test (Canoo).
> This application contains much javascript and jsp and the most of HTML pages
> comprise several frames.
> 
> I am in trouble because I don't manage to use the test step called "clickbutton"
> certainly because of the frames and jsp.
> 
> My test step is :
> ----------------
> <clickbutton stepid="click bouton pour page d'acceuil"
>                     label="Envoi"
>                     name="pbValidation"
> />
> 
> In the previous "invoke" step, I ask the main page of the frames (login.htm).
> The button declaration is in a jsp frame :
> <INPUT type="submit" name="pbValidation" value="Envoi" tabindex="5">
> 
> 
> The error message is :
> ----------------------
> => Test step clickbutton named "click bouton pour page d'acceuil"
>       failed with message "Button with name <pbValidation> and value <Envoi> not
> found!"
> 
> I hope somebody will be able to help me...
> Lezoul
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest