[Webtest] How to click button

Dierk Koenig webtest@lists.canoo.com
Wed, 12 Jul 2006 14:12:52 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C6A5BD.4371EEE0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 8bit

in this simple case, even
 <clickLink label="btncart.gif" />
is possible.

Mittie
  -----Original Message-----
  From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of amol kashetwar
  Sent: Mittwoch, 12. Juli 2006 13:36
  To: webtest@lists.canoo.com
  Subject: Re: [Webtest] How to click button


  Hi Colin,

  Follwing is the code for button as displayed in view source of the web
page.

  Code:

  <div class="clearer">
                      &nbsp;
                  </div>
               <div id="newbtns">
                      <div id="firstnewbtn"><A href="<
URL>/o9akDujq22FI1sXqSnhU/1.0.0.9.13.1.3.1.10"> <img border="0"
alt="btncart.gif" src="<URL>/btncart.gif " align="bottom"></a></div>

  <url> is the manipulated.

  Thanks,



  On 7/12/06, Colin O'Brien <colin.obrien@capetechnologies.com> wrote:
    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_000F_01C6A5BD.4371EEE0
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D289590912-12072006><FONT face=3DArial color=3D#0000ff =
size=3D2>in=20
this simple case, even</FONT></SPAN></DIV>
<DIV><SPAN class=3D289590912-12072006><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&lt;clickLink label=3D"btncart.gif" =
/&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=3D289590912-12072006><FONT face=3DArial color=3D#0000ff =
size=3D2>is=20
possible.</FONT></SPAN></DIV>
<DIV><SPAN class=3D289590912-12072006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D289590912-12072006><FONT face=3DArial color=3D#0000ff =

size=3D2>Mittie</FONT></SPAN></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>amol kashetwar<BR><B>Sent:</B> Mittwoch, 12. Juli 2006=20
  13:36<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> Re: =
[Webtest]=20
  How to click button<BR><BR></FONT></DIV>
  <DIV>Hi Colin,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Follwing is the code for button&nbsp;as displayed in view source =
of the=20
  web page.&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Code:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&lt;div=20
  =
class=3D"clearer"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;/div&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
  &lt;div=20
  =
id=3D"newbtns"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;div id=3D"firstnewbtn"&gt;&lt;A href=3D"&lt; <A=20
  =
href=3D'http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/1=
384000/wo/o94jJxakDujq22nAkFI1sXqSnhU/1.0.0.19.1.0.8.9.13.1.3.1.1.7.0.0">=
<img'>URL&gt;/o9akDujq22FI1sXqSnhU/1.0.0.9.13.1.3.1.10"&gt;=20
  &lt;img </A>border=3D"0" alt=3D"<FONT =
color=3D#000000>btncart.gif</FONT>"=20
  src=3D"&lt;<A=20
  =
href=3D"http://a248.e.akamai.net/7/248/2041/1072/store.apple.com/Catalog/=
US/Images/ips_btnaddtocart.gif">URL&gt;/btncart.gif=20
  </A>" align=3D"bottom"&gt;&lt;/a&gt;&lt;/div&gt;<BR>&nbsp;</DIV>
  <DIV>&lt;url&gt; is the manipulated.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><SPAN class=3Dgmail_quote>On 7/12/06, <B =
class=3Dgmail_sendername>Colin=20
  O'Brien</B> &lt;<A=20
  =
href=3D"mailto:colin.obrien@capetechnologies.com">colin.obrien@capetechno=
logies.com</A>&gt;=20
  wrote:</SPAN>=20
  <BLOCKQUOTE class=3Dgmail_quote=20
  style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: =
#ccc 1px solid">
    <DIV>
    <DIV lang=3DEN-US link=3D"blue" vlink=3D"blue">
    <DIV>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi=20
    Amol,</SPAN></FONT></P>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Can you =
view the=20
    source of the page you're trying to work on and send <SPAN>the =
a</SPAN>=20
    sample where the button is, it should be possible to give you an =
example for=20
    clickButton then=85 </SPAN></FONT></P>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Regards,</SPAN></FONT></P></DIV>
    <DIV><SPAN class=3Dsg>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Colin.</SPAN></FONT></P>
    <P><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P></SPAN></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DTahoma size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma"></SPAN></FONT></P></DIV>
    <DIV><SPAN class=3Dq>-----Original Message-----<BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">From:</SPAN></B> <A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:webtest-admin@lists.canoo.com"=20
    target=3D_blank>webtest-admin@lists.canoo.com</A> [mailto:<A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:webtest-admin@lists.canoo.com"=20
    target=3D_blank>webtest-admin@lists.canoo.com</A>] <B><SPAN=20
    style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>amol=20
    kashetwar<BR></SPAN></DIV>
    <DIV><SPAN class=3Dq><B><SPAN style=3D"FONT-WEIGHT: =
bold">Sent:</SPAN></B> 12=20
    July 2006 12:10<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">To:</SPAN></B> <A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:webtest@lists.canoo.com"=20
    target=3D_blank>webtest@lists.canoo.com</A><BR></SPAN></DIV>
    <DIV><SPAN class=3De id=3Dq_10c62791af167299_5><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Webtest] How to =
click=20
    button</SPAN></DIV>
    <DIV>
    <P></P></DIV>
    <DIV><SPAN class=3De id=3Dq_10c62791af167299_7>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">Hi Colin,</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">Thanks for =
information</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">I tried aroud it, but could NOT get=20
    solution.</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">Please could you send some example how to =
use it=20
    with clickLink or clickButton.<BR><BR>&nbsp;</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><SPAN><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">On 7/12/06, <B><SPAN style=3D"FONT-WEIGHT: =
bold">Colin=20
    O'Brien</SPAN></B> &lt;<A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:colin.obrien@capetechnologies.com" target=3D_blank>=20
    colin.obrien@capetechnologies.com</A>&gt; =
wrote:</SPAN></FONT></SPAN> </P>
    <DIV>
    <DIV link=3D"blue" vlink=3D"purple">
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi=20
    Amol,</SPAN></FONT></P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The=20
    &lt;clickButton/&gt; step now supports xpath. You should be able to =
address=20
    the button using xpath if all the usual attributes are missing=20
    </SPAN></FONT></P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Click =
Button Manual=20
    page:</SPAN></FONT></P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"http://webtest.canoo.com/webtest/manual/clickButton.html"=20
    =
target=3D_blank>http://webtest.canoo.com/webtest/manual/clickButton.html<=
/A></SPAN></FONT></P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Regards,</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Colin.</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3DTahoma size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original=20
    Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">From:</SPAN></B> <A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:webtest-admin@lists.canoo.com"=20
    target=3D_blank>webtest-admin@lists.canoo.com</A> [mailto:<A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:webtest-admin@lists.canoo.com"=20
    target=3D_blank>webtest-admin@lists.canoo.com</A>] <B><SPAN=20
    style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>amol =
kashetwar<BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> 12 July 2006 =
07:40<BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">To:</SPAN></B> <A=20
    onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
    href=3D"mailto:webtest@lists.canoo.com"=20
    target=3D_blank>webtest@lists.canoo.com</A><BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> [Webtest] How to =
click=20
    button</SPAN></FONT></P>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV>
    <DIV><SPAN>
    <DIV>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">Hi,</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">I want to click on button which is NOT =
having any=20
    name, label, Id field set. It is having href which is in session. =
Please=20
    could any body help me to write a code to click such type of button =
entity=20
    using canoo webtest. </SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">Thanks,</SPAN></FONT></P></DIV>
    <DIV>
    <P style=3D"MARGIN-LEFT: 72pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: =
12pt"></SPAN></FONT>&nbsp;</P></DIV></SPAN></DIV></DIV></DIV></DIV>
    <P style=3D"MARGIN-LEFT: 36pt"><FONT face=3D"Times New Roman" =
size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></SPAN></DIV>
    =
<DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>=


------=_NextPart_000_000F_01C6A5BD.4371EEE0--