在 selenium IDE 中上传文件的脚本 [英] Script to upload a file,in selenium IDE
本文介绍了在 selenium IDE 中上传文件的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
上传文件的脚本,在 selenium IDE 或如何使用 selenium 自动上传文件
Script to upload a file,in selenium IDE or How to automate uploading a file using selenium
推荐答案
您可以使用
selenium.type("xpath of text box","path of your file")
命令=类型
目标=xpath_of_text_box
value=Path_of_your_file
command=type
target=xpath_of_text_box
value=Path_of_your_file
示例:
selenium.type("id=cvfile", "D:\\Automation\\resume.doc");
这篇关于在 selenium IDE 中上传文件的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文