刚开始以为FreeTextBox控件对应到WatiN中的TextField类,实际上FreeTextBox使用了iframe的技术(可以通过IEDevToolBar来察看,这个工具可以在微软网站上下载),而iframe对应到WatiN中的Frame类。当使用TextField来给FreeTextBox控件赋值的时候会出现System.Runtime.InteropServices.COMException异常:ditional information: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. 而FreeTextBox控件的编辑器实际上是一个iframe对象,html如下所示(xxx为控件ID):