美文网首页
【python+selenium】处理iframe富文本框中输入

【python+selenium】处理iframe富文本框中输入

作者: 柠月如风000 | 来源:发表于2018-07-11 15:12 被阅读0次

1.定义要输入的内容
2.跳转到富文本框(因为被测网页的iframe中没有ID和name属性,所以用index和WebElement来定位:

ndex从0开始,传入整型参数即判定为用index定位,“0”表示第一个
3.在富文本框中输入内容
4.跳出

相关文章

网友评论

      本文标题:【python+selenium】处理iframe富文本框中输入

      本文链接:https://www.haomeiwen.com/subject/szuhpftx.html