[Webtest] Can't click on a button which has the same name in 2 different form!

Dierk Koenig webtest@lists.canoo.com
Fri, 19 Nov 2004 14:12:35 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0002_01C4CE41.D16CA190
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi Phil,

in your case you can switch from the index locator to the form locator since
your forms still differ:
<clicklink ...>
    <form name="name2"/>
</clicklink>

I think that for folk that are less lucky than you and do not have a named
form we should re-introduce the index locator on clickbutton.

cheers
Mittie

P.S. I relayed your mail to the mailinglist (CC).
  -----Original Message-----
  From: Philippe IMOUCHA [mailto:philippe.imoucha@netonomy.com]
  Sent: Freitag, 19. November 2004 12:40
  To: Dierk Koenig
  Subject: [Webtest] Can't click on a button which has the same name in 2
different form!


  Hi Dierk,



  I hav old script test I wan t to migrate with the last build

  And I face an issue I can't use anymore form and/or index in the click
button step!

  It is difficult for me because in my application Ihave a certain number of
pages where I have several forms with the same submit button name.

  Form1 name="name1"

       Submit button name="select"



  Form2 name="name2"

       Submit button name="select"



  What do you suggest me to write as a test case in order to click on button
form2.select, takein in account that I can't change the actual button naming
within my application?

  Phil

  ______________________________________________

  Philippe Imoucha

  Applications Program Manager Director

  Netonomy, Inc.

  49-51, rue Ganneron
  75018 PARIS
  France
  +33 (0) 1 74 30 74 03 (direct)
  +33 (0) 6 11 48 35 34 (mobile)
  +33 (0) 1 74 30 74 31 (fax)
  www.netonomy.com

  ______________________________________________

  "Empowering your customers through self-service"



------=_NextPart_000_0002_01C4CE41.D16CA190
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR><o:SmartTagType =

name=3D"country-region"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"City"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"place"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><!--[if !mso]>
<STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@font-face {
	font-family: Arial Black;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt =
90.0pt; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 22.7pt; FONT-FAMILY: "Times New =
Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 22.7pt; FONT-FAMILY: "Times New =
Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 22.7pt; FONT-FAMILY: "Times New =
Roman"
}
H1 {
	FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 12pt 0cm 3pt 90pt; =
TEXT-INDENT: -18pt; FONT-FAMILY: Arial; mso-list: l0 level1 lfo3
}
H3 {
	FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 12pt 0cm 3pt 90pt; =
TEXT-INDENT: -18pt; FONT-FAMILY: Arial; mso-list: l0 level3 lfo3
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: =
"Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
	page: Section1
}
OL {
	MARGIN-BOTTOM: 0cm
}
UL {
	MARGIN-BOTTOM: 0cm
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D718200613-19112004>Hi=20
Phil,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D718200613-19112004>in=20
your case you can switch from the index locator to the form locator=20
since</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D718200613-19112004>your=20
forms still differ:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004>&lt;clicklink ...&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004>&nbsp;&nbsp;&nbsp; &lt;form=20
name=3D"name2"/&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004>&lt;/clicklink&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D718200613-19112004>I=20
think that for folk that are less lucky than you and do not have a=20
named</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D718200613-19112004>form=20
we should re-introduce the index locator on =
clickbutton.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004>cheers</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004>Mittie</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D718200613-19112004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D718200613-19112004>P.S. I=20
relayed your mail to the mailinglist (CC).</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Philippe IMOUCHA=20
  [mailto:philippe.imoucha@netonomy.com]<BR><B>Sent:</B> Freitag, 19. =
November=20
  2004 12:40<BR><B>To:</B> Dierk Koenig<BR><B>Subject:</B> [Webtest] =
Can't click=20
  on a button which has the same name in 2 different =
form!<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi=20
  Dierk,<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I hav old script test I =
wan t to=20
  migrate with the last build <o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">And I face an issue I =
can&#8217;t use=20
  anymore form and/or index in the click button=20
  step!<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">It is difficult for me =
because in=20
  my application Ihave a certain number of pages where I have several =
forms with=20
  the same submit button name.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Form1=20
  name=3D&#8221;name1&#8221;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
Submit=20
  button name=3D&#8221;select&#8221;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Form2=20
  name=3D&#8221;name2&#8221;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp; =
Submit=20
  button name=3D&#8221;select&#8221;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">What do you suggest me =
to write as=20
  a test case in order to click on button form2.select, takein in =
account that I=20
  can&#8217;t change the actual button naming within my=20
  application?<o:p></o:p></SPAN></FONT></P>
  <DIV>
  <P class=3DMsoNormal=20
  style=3D"mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><FONT =
face=3DArial=20
  color=3Dblack size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial">Phil</SPAN></FONT><FONT=20
  color=3Dblack><SPAN style=3D"COLOR: =
black"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><B><FONT face=3D"Arial Black" =
color=3Dgray=20
  size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Arial =
Black'">______________________________________________</SPAN></FONT></B><=
FONT=20
  face=3DArial color=3Dblack size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><B><FONT face=3D"Arial Black" =
color=3Dgray=20
  size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Arial Black'">Philippe=20
  Imoucha</SPAN></FONT></B><FONT face=3DArial color=3Dblack =
size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><B><FONT face=3D"Arial Black" =
color=3Dgray=20
  size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Arial Black'">Applications=20
  Program Manager Director</SPAN></FONT></B><FONT face=3DArial =
color=3Dblack=20
  size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><B><FONT face=3D"Arial Black" =
color=3Dgray=20
  size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Arial Black'">Netonomy,=20
  Inc.</SPAN></FONT></B><FONT face=3DArial color=3Dblack size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><U1:STREET><U1:ADDRESS><B><FONT =
face=3DTahoma=20
  color=3Dsilver size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: silver; =
FONT-FAMILY: Tahoma">49-51,=20
  rue Ganneron<BR>75018 <st1:City w:st=3D"on"><st1:place=20
  w:st=3D"on">PARIS</st1:place></st1:City><BR><st1:country-region=20
  w:st=3D"on"><st1:place=20
  w:st=3D"on">France</st1:place></st1:country-region><BR>+33&nbsp;(0) 1 =
74 30 74=20
  03 (direct) <BR>+33 (0) 6 11 48 35 34&nbsp;(mobile) <BR>+33 (0) 1 74 =
30 74=20
  31&nbsp;(fax) <BR></SPAN></FONT></B><B><FONT face=3D"Arial Black"=20
  color=3D#999999><SPAN=20
  style=3D"FONT-WEIGHT: bold; COLOR: #999999; FONT-FAMILY: 'Arial =
Black'"></U1:ADDRESS></U1:STREET><A=20
  title=3Dwww.netonomy.com href=3D"BLOCKED::www.netonomy.com"><FONT=20
  title=3Dwww.netonomy.com face=3DArial size=3D2><SPAN =
title=3Dwww.netonomy.com><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">www.netonomy.com</SPAN></SPAN></FONT></A></SPAN></FONT></B><FONT=20
  face=3DArial color=3Dblack size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><B><FONT face=3D"Arial Black" =
color=3Dgray=20
  size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Arial =
Black'">______________________________________________</SPAN></FONT></B><=
FONT=20
  face=3DArial color=3Dblack size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P>
  <P style=3D"MARGIN: 0cm 0cm 0pt"><B><FONT face=3DTahoma color=3Dblue =
size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Tahoma">"Empowering=20
  your customers through =
self-service"</SPAN></FONT></B><o:p></o:p></P></DIV>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman"=20
  size=3D3><o:p>&nbsp;</o:p></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0002_01C4CE41.D16CA190--