2012-03-15 92 views

回答

5

文件可以使用

selenium.type("xpath of text box","path of your file") 

命令=类型
目标= xpath_of_text_box
值= Path_of_your_file

例如:

selenium.type("id=cvfile", "D:\\Automation\\resume.doc"); 
+0

此解决方案适用于Selenium WD,不适用于Selenium IDE – 2017-06-19 14:36:21