Watin testing of FckEditor
Posted
by Iyyengar
on Stack Overflow
See other posts from Stack Overflow
or by Iyyengar
Published on 2009-10-08T20:30:38Z
Indexed on
2010/05/22
12:10 UTC
Read the original article
Hit count: 305
I have been working on the integration testing of a webapp using watin. The webapp uses fckeditor as one of the richtext controls.
Here is the piece of html of the viewsource of my webapp that includes fckeditor
iframe id="ctl00_HeaderMain_txtSafetyNetDescription___Frame" src="/FCKEditor/editor/fckeditor.html?InstanceName=ctl00_HeaderMain_txtSafetyNetDescription&Toolbar=myApp" width="100%" height="200px" frameborder="no" scrolling="no" /iframe
By using the watin script ... i am able to get the frame object with the following code.
Frame frame = ie.Frame(Find.ById("ctl00_HeaderMain_txtSafetyNetDescription___Frame")) ;
Now I want to write some text to the fckeditor. But i am not sure how to write to the fckeditor as it is a frame -- can someone help me on this.
Thanks. Iyyengar.
© Stack Overflow or respective owner