Hi,

For buttons the 'clickButton' should work. If you are outside a form
and this doesn't then try 'click' or 'clickElement'.

<click
  xpath="//d...@id='feedback_box']/table//tr"
  description="Click 1st box"
/>

works for me on a table which has a table row with a onclick attribute
where some javascript is executed.

Best regards, Stephan

On Thu, Jan 14, 2010 at 05:27:51PM +0100, David Jehoul wrote:
> Hi,
> 
>  
> 
> I know that all input in an HTML page must be inside a form. But I have some
> that are not inside a form.
> 
> My question is: is there a way to click them? Or do we have to change the
> page? I also read somewhere that it is possible to identify them by using
> htmlId. Is that correct?
> 
>  
> 
> This is the button:
> 
> <INPUT class="button2" name="close" type="button" value="Close"
> onclick="javascript:closeWindow();">
> 
>  
> 
> Remark that the javascript is part of the page:
> 
> function closeWindow() {
> window.open('','_parent','');
> window.close();
> }
> 
>  
> 
>  
> 
> I guess that I can also use the 'closeWindow' command in this case, but are
> there other ways (in case it is not about closing the window)?
> 
>  
> 
> Thanks!
> 
>  
> 
> David
> 
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to