[Webtest] How to pass through a page having ClickLink Label with JS function in it

Michael Zwick Michael Zwick <Michael.Zwick@genedata.com>
Tue, 8 Nov 2011 16:04:47 +0000


--_000_2F5560763907374EB744AC7FA3CB61B1027038hartGenedatawin_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Have you tried <clickElement .../>?
See http://webtest.canoo.com/webtest/manual/clickElement.html

Michael

From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
On Behalf Of lokesh
Sent: Tuesday, November 08, 2011 4:05 PM
To: webtest@lists.canoo.com
Subject: [Webtest] How to pass through a page having ClickLink Label with J=
S function in it

Hi,

I am not able to proceed further from the page having following code.I trie=
d : <clickLink label=3D"CONTINUE" />

Code:
<div class=3D"sq-red-btn-right">
<a onclick=3D"javascript:nextSubmit("mainForm"); return form_submit("mainFo=
rm")" href=3D"#">CONTINUE</a>
</div>

I tried giving xpath values but it did not work either. Please help me with=
 your valuable suggestions.

Thanks,
Lokesh


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

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" 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=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.nodelabelbox
	{mso-style-name:nodelabelbox;}
span.nodetag
	{mso-style-name:nodetag;}
span.nodeattr
	{mso-style-name:nodeattr;}
span.nodename
	{mso-style-name:nodename;}
span.nodevalue
	{mso-style-name:nodevalue;}
span.nodebracket
	{mso-style-name:nodebracket;}
span.nodetext
	{mso-style-name:nodetext;}
span.nodecloselabelbox
	{mso-style-name:nodecloselabelbox;}
span.EmailStyle25
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Have you tried &lt;clickE=
lement &#8230;/&gt;?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">See
<a href=3D"http://webtest.canoo.com/webtest/manual/clickElement.html">http:=
//webtest.canoo.com/webtest/manual/clickElement.html</a><o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Michael<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> webtest-=
admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]
<b>On Behalf Of </b>lokesh<br>
<b>Sent:</b> Tuesday, November 08, 2011 4:05 PM<br>
<b>To:</b> webtest@lists.canoo.com<br>
<b>Subject:</b> [Webtest] How to pass through a page having ClickLink Label=
 with JS function in it<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"color:blac=
k">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"color:blac=
k"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"color:blac=
k">I am not able to proceed further from the page having following code.I t=
ried : &lt;clickLink label=3D&quot;CONTINUE&quot; /&gt;<o:p></o:p></span></=
p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"color:blac=
k"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"color:blac=
k">Code:<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span class=3D"nodelabelb=
ox"><span style=3D"color:black">&lt;</span></span><span class=3D"nodetag"><=
span style=3D"color:black">div</span></span><span class=3D"nodeattr"><span =
style=3D"color:black">&nbsp;</span></span><span class=3D"nodename"><span st=
yle=3D"color:black">class</span></span><span class=3D"nodeattr"><span style=
=3D"color:black">=3D&quot;</span></span><span class=3D"nodevalue"><span sty=
le=3D"color:black">sq-red-btn-right</span></span><span class=3D"nodeattr"><=
span style=3D"color:black">&quot;</span></span><span class=3D"nodebracket">=
<span style=3D"color:black">&gt;</span></span><span style=3D"color:black"><=
o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span class=3D"nodelabelb=
ox"><span style=3D"color:black">&lt;</span></span><span class=3D"nodetag"><=
span style=3D"color:black">a</span></span><span class=3D"nodeattr"><span st=
yle=3D"color:black">&nbsp;</span></span><span class=3D"nodename"><span styl=
e=3D"color:black">onclick</span></span><span class=3D"nodeattr"><span style=
=3D"color:black">=3D&quot;</span></span><span class=3D"nodevalue"><span sty=
le=3D"color:black">javascript:nextSubmit(&quot;mainForm&quot;);
 return form_submit(&quot;mainForm&quot;)</span></span><span class=3D"nodea=
ttr"><span style=3D"color:black">&quot;&nbsp;</span></span><span class=3D"n=
odename"><span style=3D"color:black">href</span></span><span class=3D"nodea=
ttr"><span style=3D"color:black">=3D&quot;</span></span><span class=3D"node=
value"><span style=3D"color:black">#</span></span><span class=3D"nodeattr">=
<span style=3D"color:black">&quot;</span></span><span class=3D"nodebracket"=
><span style=3D"color:black">&gt;</span></span><span class=3D"nodetext"><sp=
an style=3D"color:black">CONTINUE</span></span><span class=3D"nodelabelbox"=
><span style=3D"color:black">&lt;/</span></span><span class=3D"nodetag"><sp=
an style=3D"color:black">a</span></span><span class=3D"nodelabelbox"><span =
style=3D"color:black">&gt;</span></span><span style=3D"color:black"><o:p></=
o:p></span></p>
</div>
</div>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span class=3D"nodeclosel=
abelbox"><span style=3D"color:black">&lt;/</span></span><span class=3D"node=
tag"><span style=3D"color:black">div</span></span><span class=3D"nodeclosel=
abelbox"><span style=3D"color:black">&gt;</span></span><span style=3D"color=
:black"><br>
<br>
<span class=3D"nodecloselabelbox">I tried giving xpath values but it did no=
t work either. Please help me with your valuable suggestions.</span><br>
<br>
<span class=3D"nodecloselabelbox">Thanks,</span><br>
<span class=3D"nodecloselabelbox">Lokesh</span><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"color:blac=
k"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
</div>
</body>
</html>

--_000_2F5560763907374EB744AC7FA3CB61B1027038hartGenedatawin_--