Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Script to upload a file,in selenium IDE

Script to upload a file,in selenium IDE or How to automate uploading a file using selenium

like image 567
user1211231 Avatar asked Oct 09 '22 09:10

user1211231


1 Answers

You can use

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

command=type
target=xpath_of_text_box
value=Path_of_your_file

example:

selenium.type("id=cvfile", "D:\\Automation\\resume.doc");
like image 143
Chikkegowda Avatar answered Oct 13 '22 12:10

Chikkegowda