[Webtest] How to click button

Colin O'Brien webtest@lists.canoo.com
Wed, 12 Jul 2006 12:17:43 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0697_01C6A5AD.2D7E3950
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi Amol,
 
Can you view the source of the page you're trying to work on and send
the a sample where the button is, it should be possible to give you an
example for clickButton then.
 
Regards,
Colin.
 
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of amol kashetwar
Sent: 12 July 2006 12:10
To: webtest@lists.canoo.com
Subject: Re: [Webtest] How to click button
 
Hi Colin,
 
Thanks for information
I tried aroud it, but could NOT get solution.
Please could you send some example how to use it with clickLink or
clickButton.

 
On 7/12/06, Colin O'Brien <colin.obrien@capetechnologies.com> wrote: 
Hi Amol,
 
The <clickButton/> step now supports xpath. You should be able to
address the button using xpath if all the usual attributes are missing
 
Click Button Manual page:
http://webtest.canoo.com/webtest/manual/clickButton.html
 
Regards,
Colin.
 
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of amol kashetwar
Sent: 12 July 2006 07:40
To: webtest@lists.canoo.com
Subject: [Webtest] How to click button
 
Hi,
I want to click on button which is NOT having any name, label, Id field
set. It is having href which is in session. Please could any body help
me to write a code to click such type of button entity using canoo
webtest. 
 
Thanks,
 
 



------=_NextPart_000_0697_01C6A5AD.2D7E3950
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C6A5AD.2D5CCEA0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.gmailquote
	{mso-style-name:gmail_quote;}
span.sg
	{mso-style-name:sg;}
span.q
	{mso-style-name:q;}
span.e
	{mso-style-name:e;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue style=3D'tab-interval:36.0pt'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hi Amol,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Can you view the source of the page yo=
u&#8217;re
trying to work on and send <span class=3DGramE>the a</span> sample where the
button is, it should be possible to give you an example for clickButton the=
n&#8230;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Colin.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 face=3DTah=
oma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b>
webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] <b><sp=
an
style=3D'font-weight:bold'>On Behalf Of </span></b>amol kashetwar<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> 12 July 2006 12:10<br>
<b><span style=3D'font-weight:bold'>To:</span></b> webtest@lists.canoo.com<=
br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Webtest] How to
click button</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p>=
</span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Hi Colin,<o:p></o=
:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p>=
</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Thanks for inform=
ation<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>I tried aroud it,=
 but
could NOT get solution.<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Please could you =
send
some example how to use it with clickLink or clickButton.<br>
<br>
&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><span class=3Dgmailquote>=
<font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>On 7/12/=
06, <b><span
style=3D'font-weight:bold'>Colin O'Brien</span></b> &lt;<a
href=3D"mailto:colin.obrien@capetechnologies.com">colin.obrien@capetechnolo=
gies.com</a>&gt;
wrote:</span></font></span> <o:p></o:p></p>

<div>

<div vlink=3Dpurple link=3Dblue>

<div>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Hi Amol,</span></fo=
nt><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font=
><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>The &lt;clickButton=
/&gt;
step now supports xpath. You should be able to address the button using xpa=
th if
all the usual attributes are missing</span></font><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font=
><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Click Button Manual=
 page:</span></font><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><a
href=3D"http://webtest.canoo.com/webtest/manual/clickButton.html" target=3D=
"_blank"
onclick=3D"return top.js.OpenExtLink(window,event,this)">http://webtest.can=
oo.com/webtest/manual/clickButton.html</a></span></font><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font=
><o:p></o:p></p>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Regards,</span></fo=
nt><o:p></o:p></p>

</div>

<div>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Colin.</span></font=
><o:p></o:p></p>

</div>

<div>

<p style=3D'margin-left:36.0pt'><font size=3D2 color=3Dnavy face=3DArial><s=
pan
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font=
><o:p></o:p></p>

<p style=3D'margin-left:72.0pt'><font size=3D2 face=3DTahoma><span style=3D=
'font-size:
10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> <a
href=3D"mailto:webtest-admin@lists.canoo.com" target=3D"_blank"
onclick=3D"return top.js.OpenExtLink(window,event,this)">webtest-admin@list=
s.canoo.com</a>
[mailto:<a href=3D"mailto:webtest-admin@lists.canoo.com" target=3D"_blank"
onclick=3D"return top.js.OpenExtLink(window,event,this)">webtest-admin@list=
s.canoo.com</a>]
<b><span style=3D'font-weight:bold'>On Behalf Of </span></b>amol kashetwar<=
br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> 12 July 2006 07:40<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <a
href=3D"mailto:webtest@lists.canoo.com" target=3D"_blank"
onclick=3D"return top.js.OpenExtLink(window,event,this)">webtest@lists.cano=
o.com</a><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Webtest] How to cl=
ick
button</span></font><o:p></o:p></p>

<p style=3D'margin-left:72.0pt'><font size=3D3 face=3D"Times New Roman"><sp=
an
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div><span id=3D"q_10c61d2a18dc79b9_3">

<div>

<p style=3D'margin-left:72.0pt'><font size=3D3 face=3D"Times New Roman"><sp=
an
style=3D'font-size:12.0pt'>Hi,<o:p></o:p></span></font></p>

</div>

<div>

<p style=3D'margin-left:72.0pt'><font size=3D3 face=3D"Times New Roman"><sp=
an
style=3D'font-size:12.0pt'>I want to click on button which is NOT having any
name, label, Id field set. It is having href which is in session. Please co=
uld
any body help me to write a code to click such type of button entity using
canoo webtest. <o:p></o:p></span></font></p>

</div>

<div>

<p style=3D'margin-left:72.0pt'><font size=3D3 face=3D"Times New Roman"><sp=
an
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p style=3D'margin-left:72.0pt'><font size=3D3 face=3D"Times New Roman"><sp=
an
style=3D'font-size:12.0pt'>Thanks,<o:p></o:p></span></font></p>

</div>

<div>

<p style=3D'margin-left:72.0pt'><font size=3D3 face=3D"Times New Roman"><sp=
an
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

</div>

</span>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p>=
</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0697_01C6A5AD.2D7E3950--