[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 • 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 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"><setInputField description=3D"Input text in =
editor"</FONT>=20
<BR><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Courier =
New">xpath=3D"//input[@id=3D'EditorDefault']</FONT>
<BR><FONT COLOR=3D"#800000" SIZE=3D2 FACE=3D"Courier =
New">value=3D"Test1"/></FONT>=20
</P>
<BR>
<P><U><FONT SIZE=3D2 FACE=3D"Book Antiqua">Below is the part of =
HTML Code:</FONT></U>
<BR><FONT SIZE=3D2 FACE=3D"Book =
Antiqua">****************************************************************=
*********************************************3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">div =
id=3D"clientInfo">0835-0496093-8&nbsp;&#149;&nbs=
p;Acuna Beat</div><BR>
<div id=3D"content"><BR>
<form name=3D"cmpForm" action=3D"INVESTnet" =
method=3D"post"><input<BR>
type=3D"hidden" =
name=3D"action" value=3D"pdfComposerFreeText"> =
<input<BR>
type=3D"hidden" =
name=3D"gotoAction" value=3D""> <input =
type=3D"hidden"<BR>
name=3D"source" =
value=3D"pdfComposerFreeText"> <input =
type=3D"hidden"<BR>
name=3D"wId"<BR>
value=3D"3"> =
<input<BR>
type=3D"hidden" =
name=3D"seqNo"<BR>
=
value=3D"4"></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New"><input type=3Dhidden =
name=3D"hiddenuid" value=3D"" ><BR>
<BR>
<div style=3D"margin-top: 48px; width: 960px;"><BR>
<div class=3D"header1Column">Text</div><BR>
<div class=3D"body1Column"><BR>
<div><input =
type=3D"hidden" id=3D"<B>EditorDefault</B>" =
name=3D"EditorDefault" value=3D"<BR>
=
=
=
=
<BR>
"><input =
type=3D"hidden" id=3D"<B>EditorDefault___Config</B>" =
value=3D""><iframe =
id=3D"<B>EditorDefault___Frame</B>" =
src=3D"/investnet/FCKeditor/editor/fckeditor.html?InstanceName=3DEdi=
torDefault&Toolbar=3DinvestNet" width=3D"922px" =
height=3D"200" frameborder=3D"no" =
scrolling=3D"no"></iframe></div><BR>
<BR>
</div><BR>
</div><BR>
<BR>
<div class=3D"buttonsBottom"></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New"> <div =
class=3D"buttons"><input name=3D"saveAsNew" =
type=3D"submit" class=3D"button" value=3D"Save =
as New"></div><BR>
<div class=3D"buttons"><input =
name=3D"update" type=3D"submit" =
class=3D"button" value=3D"Update" DISABLED =
></div><BR>
<div class=3D"buttonsRight"><input =
name=3D"addProposal" type=3D"submit" =
class=3D"button" value=3D"Add to =
Proposal"></div><BR>
<div class=3D"buttonsRight"><input =
name=3D"back" type=3D"submit" =
class=3D"button" value=3D"Back"></div><BR>
</div></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Book =
Antiqua">****************************************************************=
*************************************************************************=
*********</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Book Antiqua"> </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: with =
(taskName=3D"clickButton")</FONT></P>
<P> <FONT SIZE=3D2 =
FACE=3D"Courier New">at =
com.canoo.webtest.engine.WebClientContext.getCurrentHtmlResponse(WebClien=
tContext.java:185)</FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Courier New">at =
com.canoo.webtest.engine.Context.getCurrentHtmlResponse(Context.java:85)<=
/FONT>
<BR> <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 & Regards</FONT>
<BR><B><FONT FACE=3D"Book Antiqua">Sangamesh S</FONT></B>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C7DF4D.7266681B--