WatiN:如何在其他框架中分配的正文中键入文本 [英] WatiN: How to type text in the Body allocated in other Frame

查看:24
本文介绍了WatiN:如何在其他框架中分配的正文中键入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是 TinyMCE 编辑器的链接:TinyMCE

我有一个任务:在 TinyMCE 的文本字段中输入文本.但这不是文本字段,这是一个没有方法TypeText();"的正文

请给我看代码示例,它可以在 TinyMCE Body 中输入文本

解决方案

tinyMce 和 watin 不能很好地配合使用.我通常必须使用 javascript(使用 browser.eval)和 textfield 对象的 setAttributeValue('value') 的组合.>

This is link to TinyMCE redactor: TinyMCE

I have a task: To type text in the textfield of TinyMCE. But this in not a textfield, this is a Body that doesn't have a method "TypeText();"

Please show me the code example, that can type the text in the TinyMCE Body

解决方案

tinyMce and watin don't play well together. I generally have to use a combination of javascript (using browser.eval) and the setAttributeValue('value') of textfield objects.

这篇关于WatiN:如何在其他框架中分配的正文中键入文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆