Marek Dębczyński wrote:
> Hi All
>
> Maybe anyone has tested the fckEditor with Canoo?
> How to fill the value of fckEditor?
>
> Regards
> Marek
Hi,
I don't test the FCKeditor per itself in my tests but just set the field
value as would it be set by FCKeditor. To abstract it I define a macro
and then use it.
<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>
which can be used like
<setFCKeditorField name="myField" value="some value"/>
Note than latest FCKeditor works with HtmlUnit 1.14 only when simulating
Firefox and not IE (which is the default of WebTest). You can tell
WebTest to simulate FF using something like:
<config ...>
<header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT
5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5"/>
</config>
Marc.
--
Blog: http://mguillem.wordpress.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest