51Testing软件测试论坛

标题: watir怎么测试fckeditor啊 [打印本页]

作者: test394    时间: 2008-10-16 10:21
标题: watir怎么测试fckeditor啊
地址:http://www.fckeditor.net/demo
现在许多网站都采用fckeditor,但我用watir获取不到元素根本无法控制操作,采用框架方式。哪位高人帮忙指导一下
<iframe id="FCKeditor1___Frame" src="/fckeditor/2.6.3/editor/fckeditor.html?InstanceName=FCKeditor1&amp;Toolbar=Default" width="100%" height="200" frameborder="0" scrolling="no"></iframe>
作者: wfbobby    时间: 2008-10-16 11:55
我用watin的,和watir源出一家。如果在watin中识别你那个
ie.frame(Find.ById("FCKeditor1___Frame")).click();
不知道是否有帮助。
作者: test394    时间: 2008-10-16 14:02
谢谢楼上,获取框架的方法我知道,但是我要在那里写东西,fckeditor没有input等元素,没有ID、name不知道怎么获取写入
作者: test394    时间: 2008-10-16 21:02

作者: cjq_999    时间: 2009-1-13 13:53
标题: 回复 1# 的帖子
I think the comment below can help you.
$ie.frame(:id,/FCKeditor1___Frame/).frame(:index, 1).document.body.focus
$ie.send_keys("Nice to meet you")




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2