[Webtest] Cannot input text in Iframe

Shivalingappa Sangamesh (KSFI 721) Shivalingappa Sangamesh (KSFI 721)" <sangamesh.shivalingappa@credit-suisse.com
Wed, 15 Aug 2007 17:03:32 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C7DF4D.7266681B
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
I am not able to input/enter  text in a 3rd party editor embedded in
HTML page,

WebTest Code I am using is:

<setInputField description=3D"Input text in editor"=20
xpath=3D"//input[@id=3D'EditorDefault']
value=3D"Test1"/>=09


Below is the part of HTML  Code:
************************************************************************
*************************************3
div id=3D"clientInfo">0835-0496093-8&nbsp;&#149;&nbsp;Acuna Beat</div>
<div id=3D"content">
<form name=3D"cmpForm" action=3D"INVESTnet" method=3D"post"><input
	type=3D"hidden" name=3D"action" value=3D"pdfComposerFreeText"> <input
	type=3D"hidden" name=3D"gotoAction" value=3D""> <input type=3D"hidden"
	name=3D"source" value=3D"pdfComposerFreeText"> <input type=3D"hidden"
	name=3D"wId"
	value=3D"3"> <input
	type=3D"hidden" name=3D"seqNo"
	value=3D"4">
<input type=3Dhidden name=3D"hiddenuid" value=3D"" >

<div style=3D"margin-top: 48px; width: 960px;">
  <div class=3D"header1Column">Text</div>
  <div class=3D"body1Column">
	<div><input type=3D"hidden" id=3D"EditorDefault"
name=3D"EditorDefault" value=3D"
				=09
	"><input type=3D"hidden" id=3D"EditorDefault___Config"
value=3D""><iframe id=3D"EditorDefault___Frame"
src=3D"/investnet/FCKeditor/editor/fckeditor.html?InstanceName=3DEditorDe=
fau
lt&Toolbar=3DinvestNet" width=3D"922px" height=3D"200" =
frameborder=3D"no"
scrolling=3D"no"></iframe></div>

  </div>
</div>

<div class=3D"buttonsBottom">
  <div class=3D"buttons"><input name=3D"saveAsNew" type=3D"submit"
class=3D"button" value=3D"Save as New"></div>
  <div class=3D"buttons"><input name=3D"update" type=3D"submit" =
class=3D"button"
value=3D"Update" DISABLED  ></div>
  <div class=3D"buttonsRight"><input name=3D"addProposal" =
type=3D"submit"
class=3D"button" value=3D"Add to Proposal"></div>
  <div class=3D"buttonsRight"><input name=3D"back" type=3D"submit"
class=3D"button" value=3D"Back"></div>
</div>
************************************************************************
************************************************************************
**
=20

web test result:
Error=20
Exception
com.canoo.webtest.engine.StepExecutionException=20
Message
Current response is not an HTML page but of type=20
Stacktrace
com.canoo.webtest.engine.StepExecutionException: Current response is not
an HTML page but of type , Step: ClickButton at
C:\projects\investnet_fix\webtest\tests\application\monitoring\client_mo
nitor\Composer.xml:197:  with (taskName=3D"clickButton")
	at
com.canoo.webtest.engine.WebClientContext.getCurrentHtmlResponse(WebClie
ntContext.java:185)
	at
com.canoo.webtest.engine.Context.getCurrentHtmlResponse(Context.java:85)
	at
com.canoo.webtest.steps.request.ClickButton.findTarget(ClickButton.java:
148)

can any one help me in this regard??


Thanks & Regards
Sangamesh S


------_=_NextPart_001_01C7DF4D.7266681B
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7652.24">
<TITLE>Cannot input text in Iframe</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Book Antiqua">Hi,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Book Antiqua">I am not able to =
input/enter&nbsp; text in a 3rd party editor embedded in HTML =
page,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Book Antiqua">WebTest Code I am using =
is:</FONT>
</P>

<P><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Courier =
New">&lt;setInputField description=3D&quot;Input text in =
editor&quot;</FONT>=20

<BR><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Courier =
New">xpath=3D&quot;//input[@id=3D'EditorDefault']</FONT>

<BR><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Courier =
New">value=3D&quot;Test1&quot;/&gt;</FONT>=20
</P>
<BR>

<P><U><FONT SIZE=3D2 FACE=3D"Book Antiqua">Below is the part of =
HTML&nbsp; Code:</FONT></U>

<BR><FONT SIZE=3D2 FACE=3D"Book =
Antiqua">****************************************************************=
*********************************************3</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">div =
id=3D&quot;clientInfo&quot;&gt;0835-0496093-8&amp;nbsp;&amp;#149;&amp;nbs=
p;Acuna Beat&lt;/div&gt;<BR>
&lt;div id=3D&quot;content&quot;&gt;<BR>
&lt;form name=3D&quot;cmpForm&quot; action=3D&quot;INVESTnet&quot; =
method=3D&quot;post&quot;&gt;&lt;input<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=3D&quot;hidden&quot; =
name=3D&quot;action&quot; value=3D&quot;pdfComposerFreeText&quot;&gt; =
&lt;input<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=3D&quot;hidden&quot; =
name=3D&quot;gotoAction&quot; value=3D&quot;&quot;&gt; &lt;input =
type=3D&quot;hidden&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=3D&quot;source&quot; =
value=3D&quot;pdfComposerFreeText&quot;&gt; &lt;input =
type=3D&quot;hidden&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=3D&quot;wId&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value=3D&quot;3&quot;&gt; =
&lt;input<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=3D&quot;hidden&quot; =
name=3D&quot;seqNo&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
value=3D&quot;4&quot;&gt;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&lt;input type=3Dhidden =
name=3D&quot;hiddenuid&quot; value=3D&quot;&quot; &gt;<BR>
<BR>
&lt;div style=3D&quot;margin-top: 48px; width: 960px;&quot;&gt;<BR>
&nbsp; &lt;div class=3D&quot;header1Column&quot;&gt;Text&lt;/div&gt;<BR>
&nbsp; &lt;div class=3D&quot;body1Column&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div&gt;&lt;input =
type=3D&quot;hidden&quot; id=3D&quot;<B>EditorDefault</B>&quot; =
name=3D&quot;EditorDefault&quot; value=3D&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&gt;&lt;input =
type=3D&quot;hidden&quot; id=3D&quot;<B>EditorDefault___Config</B>&quot; =
value=3D&quot;&quot;&gt;&lt;iframe =
id=3D&quot;<B>EditorDefault___Frame</B>&quot; =
src=3D&quot;/investnet/FCKeditor/editor/fckeditor.html?InstanceName=3DEdi=
torDefault&amp;Toolbar=3DinvestNet&quot; width=3D&quot;922px&quot; =
height=3D&quot;200&quot; frameborder=3D&quot;no&quot; =
scrolling=3D&quot;no&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;<BR>
<BR>
&nbsp; &lt;/div&gt;<BR>
&lt;/div&gt;<BR>
<BR>
&lt;div class=3D&quot;buttonsBottom&quot;&gt;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp; &lt;div =
class=3D&quot;buttons&quot;&gt;&lt;input name=3D&quot;saveAsNew&quot; =
type=3D&quot;submit&quot; class=3D&quot;button&quot; value=3D&quot;Save =
as New&quot;&gt;&lt;/div&gt;<BR>
&nbsp; &lt;div class=3D&quot;buttons&quot;&gt;&lt;input =
name=3D&quot;update&quot; type=3D&quot;submit&quot; =
class=3D&quot;button&quot; value=3D&quot;Update&quot; DISABLED&nbsp; =
&gt;&lt;/div&gt;<BR>
&nbsp; &lt;div class=3D&quot;buttonsRight&quot;&gt;&lt;input =
name=3D&quot;addProposal&quot; type=3D&quot;submit&quot; =
class=3D&quot;button&quot; value=3D&quot;Add to =
Proposal&quot;&gt;&lt;/div&gt;<BR>
&nbsp; &lt;div class=3D&quot;buttonsRight&quot;&gt;&lt;input =
name=3D&quot;back&quot; type=3D&quot;submit&quot; =
class=3D&quot;button&quot; value=3D&quot;Back&quot;&gt;&lt;/div&gt;<BR>
&lt;/div&gt;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Book =
Antiqua">****************************************************************=
*************************************************************************=
*********</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Book Antiqua">&nbsp;</FONT>
</P>

<P><U><B><FONT SIZE=3D2 FACE=3D"Book Antiqua">web test =
result:</FONT></B></U>

<BR><B><FONT SIZE=3D5 FACE=3D"Times New Roman">Error </FONT></B>

<BR><B><FONT SIZE=3D4 FACE=3D"Times New Roman">Exception</FONT></B>

<BR><FONT FACE=3D"Times New =
Roman">com.canoo.webtest.engine.StepExecutionException </FONT>

<BR><B><FONT SIZE=3D4 FACE=3D"Times New Roman">Message</FONT></B>

<BR><FONT FACE=3D"Times New Roman">Current response is not an HTML page =
but of type </FONT>

<BR><B><FONT SIZE=3D4 FACE=3D"Times New Roman">Stacktrace</FONT></B>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">com.canoo.webtest.engine.StepExecutionException: Current response =
is not an HTML page but of type , Step: ClickButton at =
C:\projects\investnet_fix\webtest\tests\application\monitoring\client_mon=
itor\Composer.xml:197:&nbsp; with =
(taskName=3D&quot;clickButton&quot;)</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Courier New">at =
com.canoo.webtest.engine.WebClientContext.getCurrentHtmlResponse(WebClien=
tContext.java:185)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Courier New">at =
com.canoo.webtest.engine.Context.getCurrentHtmlResponse(Context.java:85)<=
/FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Courier New">at =
com.canoo.webtest.steps.request.ClickButton.findTarget(ClickButton.java:1=
48)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Book Antiqua">can any one help me in this =
regard??</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Book Antiqua">Thanks &amp; Regards</FONT>

<BR><B><FONT FACE=3D"Book Antiqua">Sangamesh S</FONT></B>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C7DF4D.7266681B--