Hi,
I use the FCKeditor too and set the value with
<forceHiddenInputField name="your field name" value="the value"/>
With current build of WebTest (based on HtmlUnit-1.11), it only works
when you configure WebTest to simulate Firefox. Once HtmlUnit-1.12 is
integrated, I've noted that it will only work when simulating IE (the
reason is that due to improved js support, more js code is executed and
new problems occurs).
In all cases I recommend you to "hide" the way you fill the FCKEditor
with for instance something like:
<macrodef name="setFCKeditorField"
description="set the value of a field displayed in the FCKeditor">
<attribute name="name" description="the name of the input field"/>
<attribute name="value" description="the value to set"/>
<sequential>
<forceHiddenInputField name="@{name}" value="@{value}"/>
</sequential>
</macrodef>
that you can use later with
<setFCKeditorField name="your field name" value="the value"/>
Marc.
Shivalingappa Sangamesh (KSFI 721) wrote:
> 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="Input text in editor"
> xpath="//[EMAIL PROTECTED]'EditorDefault']
> value="Test1"/>
>
>
> _Below is the part of HTML Code:_
> *************************************************************************************************************3
>
> div id="clientInfo">0835-0496093-8 • Acuna Beat</div>
> <div id="content">
> <form name="cmpForm" action="INVESTnet" method="post"><input
> type="hidden" name="action" value="pdfComposerFreeText"> <input
> type="hidden" name="gotoAction" value=""> <input type="hidden"
> name="source" value="pdfComposerFreeText"> <input type="hidden"
> name="wId"
> value="3"> <input
> type="hidden" name="seqNo"
> value="4">
> <input type=hidden name="hiddenuid" value="" >
>
> <div style="margin-top: 48px; width: 960px;">
> <div class="header1Column">Text</div>
> <div class="body1Column">
> <div><input type="hidden" id="*EditorDefault*"
> name="EditorDefault" value="
>
> "><input type="hidden" id="*EditorDefault___Config*"
> value=""><iframe id="*EditorDefault___Frame*"
> src="/investnet/FCKeditor/editor/fckeditor.html?InstanceName=EditorDefault&Toolbar=investNet"
> width="922px" height="200" frameborder="no" scrolling="no"></iframe></div>
>
> </div>
> </div>
>
> <div class="buttonsBottom">
> <div class="buttons"><input name="saveAsNew" type="submit"
> class="button" value="Save as New"></div>
> <div class="buttons"><input name="update" type="submit" class="button"
> value="Update" DISABLED ></div>
> <div class="buttonsRight"><input name="addProposal" type="submit"
> class="button" value="Add to Proposal"></div>
> <div class="buttonsRight"><input name="back" type="submit"
> class="button" value="Back"></div>
> </div>
> **************************************************************************************************************************************************
>
>
>
> _*web test result:*_
> *Error *
> *Exception*
> com.canoo.webtest.engine.StepExecutionException
> *Message*
> Current response is not an HTML page but of type
> *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_monitor\Composer.xml:197:
>
> with (taskName="clickButton")
>
> at
> com.canoo.webtest.engine.WebClientContext.getCurrentHtmlResponse(WebClientContext.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*
>
--
Blog: http://mguillem.wordpress.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest