Re[2]: [Webtest] no alert/confirm handler installed warning after attempt to pass through java-script dialogs

Andrew Sickorsky Andrew Sickorsky <andrew.sickorsky@texunatech.com>
Wed, 6 Jun 2007 17:21:45 +0400


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dwindows-125=
1">
<meta http-equiv=3D"Content-Style-Type" content=3D"text/css">
<style type=3D"text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ---------- Text Styles ---------- */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-weight: bold;
 color: #800000;
}
span.rvts7
{
 font-weight: bold;
 color: #800080;
}
a.rvts8, span.rvts8
{
 color: #0000ff;
 text-decoration: underline;
}
span.rvts9
{
 font-size: 8pt;
 font-family: 'arial';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts10, span.rvts10
{
 font-size: 8pt;
 font-family: 'arial';
 color: #0000ff;
 text-decoration: underline;
}
/* ---------- Para Styles ---------- */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Hello Marc,</p>
<p><br></p>
<p>Thanks &nbsp;for &nbsp;answer.&nbsp;
<br>&nbsp;Test failes with &lt;verifyText text=3D"Total records:&nbsp;<span=
 class=3Drvts6>110"/&gt; step.&nbsp;</span></p>
<p><span class=3Drvts6>The logic is:</span></p>
<p>&nbsp;- click image button (Duplicate rows)</p>
<p>&nbsp;- click Ok in the confirm-like javascript pop-up</p>
<p>&nbsp;- check, that 10 records were duplicated (total count should be eq=
ual to 110)</p>
<p><br></p>
<p>&nbsp; Ideally (because i'm satisfy with 'Ok' answer for confirm message=
 by default) no &lt;expectDialog&gt; step is needed.&nbsp;
<br>But - in fact nothing happens, no record are duplicated though &lt;clic=
kelement ../&gt; pass successfully.</p>
<p><br></p>
<p>&nbsp; May be the reason is that we use GWT table (it constructs table w=
ith records after page loading via JavaScript), i don't know - it's another=
 question</p>
<p><br></p>
<p><span class=3Drvts6>&gt; Hi Andrew,</span></p>
<p><br></p>
<p><span class=3Drvts6>&gt; as nobody answers I will try (even if don't fee=
l myself very qualified</span></p>
<p><span class=3Drvts6>&gt; concerning expectDialog step).</span></p>
<p><br></p>
<p><span class=3Drvts6>&gt; Where does your test fail? When does your appli=
cation complain with "Please</span></p>
<p><span class=3Drvts6>&gt; select rows"? Is it possible, that your &lt;cli=
ckElement .../&gt; doesn't do what</span></p>
<p><span class=3Drvts6>&gt; you wanted?</span></p>
<p><br></p>
<p><span class=3Drvts6>&gt; Marc.</span></p>
<p><br></p>
<p><br></p>
<p><span class=3Drvts6>&gt; Andrew Sickorsky wrote:</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; Hello All!</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; I'm trying to use WebTest with pop-up alert=
/confirm messages via</span></p>
<p><span class=3Drvts7>&gt;&gt; ExpectDialog:</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; &lt;expectDialog description=3D"Expected di=
alog for record duplicating"</span></p>
<p><span class=3Drvts7>&gt;&gt; dialogType=3D"confirm"/&gt;</span></p>
<p><span class=3Drvts7>&gt;&gt; &lt;clickElement</span></p>
<p><span class=3Drvts7>&gt;&gt; xpath=3D"//ul[@class=3D'dataProcessing']/li=
/input[@alt=3D'Duplicate record']"</span></p>
<p><span class=3Drvts7>&gt;&gt; description=3D"Duplicate first 10 records"/=
&gt;</span></p>
<p><span class=3Drvts7>&gt;&gt; &lt;verifyText text=3D"Total records: 110" =
/&gt;</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; But nothing happens: there is one warning &=
nbsp;"window.alert("Please select</span></p>
<p><span class=3Drvts7>&gt;&gt; rows") no alert handler installed".&nbsp;</=
span></p>
<p><span class=3Drvts7>&gt;&gt; BTW no scence in presence of &lt;expectDial=
og&gt; step in the testsuite.</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; So, what should I do/install/remove/modify =
to force WebTest to click on</span></p>
<p><span class=3Drvts7>&gt;&gt; such dialogs?</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; WebTest 2.5 was used.</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; Thanks in advance, and sorry for disturbing=
</span></p>
<p><br></p>
<p><span class=3Drvts7>&gt;&gt; --&nbsp;</span></p>
<p><span class=3Drvts7>&gt;&gt; Best regards,</span></p>
<p><span class=3Drvts7>&gt;&gt; &nbsp;Andrew.</span></p>
<p><span class=3Drvts7>&gt;&gt; Texuna Tech &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></p>
<p><a class=3Drvts8 href=3D"mailto:andrew.sickorsky@texunatech.com">&gt;&gt=
; mailto:andrew.sickorsky@texunatech.com</a></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=3Drvts9>--&nbsp;</span></p>
<p><span class=3Drvts9>Best regards,</span></p>
<p><span class=3Drvts9>&nbsp;Andrew &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><a class=
=3Drvts10 href=3D"mailto:andrew.sickorsky@texunatech.com">mailto:andrew.sic=
korsky@texunatech.com</a></p>

</body></html>