Thanks a lot!!!
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Stephan Robotta
Sent: donderdag 14 januari 2010 18:06
To: [email protected]
Subject: Re: [Webtest] button outside form
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
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest