[Webtest] setInputField fails for no reason
Noam Aigerman
Noam Aigerman <noama@answers.com>
Wed, 04 Jun 2008 01:09:32 +0300
This is a multi-part message in MIME format.
--Boundary_(ID_w3+SA1e9MBG1Nlr4eC1bEQ)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
I have a simple test that has two steps:
<invoke http://some <http://some/> .url/>
<setInputField name="new_url" value="http://www.urlo.com"/>
The test fails on error "No suitable form found having field named
"new_url"" , but when I check the page received in the results, sure
enough it has the line:
<td colspan="2" style="padding-left: 5px;"><input type=text
name="new_url" size=80></td></tr>
Why doesn't canoo find the Input fielf by it's name?
Thanks, Noam
--Boundary_(ID_w3+SA1e9MBG1Nlr4eC1bEQ)
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.45pt 841.7pt;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1><pre><font size=2 face="Courier New"><span
style='font-size:10.0pt'>I have a simple test that has two steps:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><invoke <a
href="http://some/">http://some</a>.url/><o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><setInputField name="new_url" value="http://www.urlo.com"/><o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>The test fails on error “No suitable form found having field named "new_url"” , but when I check the page received in the results, sure enough it has the line: <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><<span
class=start-tag>td</span><span class=attribute-name> colspan</span>=<span
class=attribute-value>"2" </span><span class=attribute-name>style</span>=<span
class=attribute-value>"padding-left: 5px;"</span>><<span
class=start-tag>input</span><span class=attribute-name> type</span>=<span
class=attribute-value>text </span><span class=attribute-name>name</span>=<span
class=attribute-value>"new_url" </span><span class=attribute-name>size</span>=<span
class=attribute-value>80</span>></<span class=end-tag>td</span>></<span
class=end-tag>tr</span>><o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Why doesn’t canoo find the Input fielf by it’s name?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks, Noam<o:p></o:p></span></font></p>
</div>
</body>
</html>
--Boundary_(ID_w3+SA1e9MBG1Nlr4eC1bEQ)--