Note: If I close the Window Prompt Manually then the Code is continued from there. Code stops at the point where the browser clicks on Browse button and a window prompt opens. Now, close the editor and right-click on it, you will see compile script option. Set the File name text on the Edit fieldĬontrolSetText("File Upload", "", "Edit1", $CmdLine) Sleep(2000) ĬontrolClick("File Upload", "","Button1") Įclipse is not even throwing any error or exception. Using AutoIT: Once you open the AutoIT editor, you need to write a simple code in AutoIT editor, required for file upload operation (the name of the file to be uploaded, will be mentioned in the code). Step 2: Open file uploader window by clicking on ‘UPLOAD FILES’. Set input focus to the edit control of Upload window using the handle returned by WinWaitĬontrolFocus("File Upload","","Edit1") Sleep(2000) Step 1: Open element Identifier- Go to ‘C:\Program Files (x86)\AutoIt3’ and click on ‘Au3Info.exe’ file. I've autoit code for pasting the path of the file in window prompt and clicking on the open button.īut my problem is after clicking on the 'Browse' button using the below code, window prompt for file upload is appearing and my code is not moving from that point to next line where Im calling autoit executable file. I wanted to upload the file using AutoIt in selenium webdriver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |