如何在硒python脚本-chrome驱动程序中将文本(sendkey)发送给ckeditor [英] how send text(sendkey) to ckeditor in selenium python scripting -chrome driver

查看:253
本文介绍了如何在硒python脚本-chrome驱动程序中将文本(sendkey)发送给ckeditor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写脚本时无法将文本发送到CKEditor的文本框中,它也未在seleniumIDE记录中显示。请尽快解决我的问题

I can't send a text to the text box of CKEditor while I scripting.it not shown in the seleniumIDE recording also.Help me to fix this issueASAP

推荐答案

由于我不知道您的html外观如何,我只向您展示您将使用的函数。

Since I don't know how looks your html, I'll just show you functions which you would use.

browser.switch_to_frame("your frame id")

所以现在您已经在CKEditor框架中

So now you already in CKEditor frame

 el = browser.find_element_by_id("ckedit_element_id")

这篇关于如何在硒python脚本-chrome驱动程序中将文本(sendkey)发送给ckeditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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