InterviewSolution
Saved Bookmarks
| 1. |
Explain how to upload a file using AutoIt tool? |
|
Answer» Download and INSTALL AutoIt tool Open SciTE Script editor and ADD the below mentioned AutoIt script. Save it as ‘UploadFile.au3’ in your system. Below is the AutoIt Script: WinWaitActive("FILE Upload") SEND("D:\SoftwareTestingMaterial\UploadFile.txt") Send("{ENTER}")Save it as ‘UploadFile.au3’ After the file is saved, we need to CONVERT the ‘UploadFile.au3’ to ‘UploadFile.exe’. (This can be done by Right Click on the file and click on ‘Compile Script’) . Add the below mentioned Selenium Script and run : Runtime.getRuntime().exec(“D:\\Automation\\AutoIt\\Uploadfile.exe”); |
|