How to upload multiple files in Selenium using AutoIT

preview_player
Показать описание
In this video we will see how to parameterize AutoIT script and using the same we can achieve multiple file upload scenario.

Lets see How to upload multiple files in Selenium using AutoIT

-~-~~-~~~-~~-~-
Please watch: "How To Create Maven build For Selenium Framework"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Hii.. There is no sound in this video.. Plz upload again 🙏

sahinparwin
Автор

Hi Mukesh, Awesome video. Do you have an idea how to use AutoIT in parallel execution ?

sudhindraggg
Автор

+Mukesh Thanks for doing such a video really helped me a lot. Thanks again.

selvakumar
Автор

HI MUKESH... NO SOUND FOR THIS VIDEO... CAN YOU PLEAE REUPLOAD?

maheshkaradi
Автор

Hi Mukesh,

I am trying to execute this code of AutoIT to upload file in Chrome but its not working. it doesnt throw any error also.
WinWaitActive("Open")
ControlFocus("Open", "", "Edit1")
ControlSetText("Open", "", "Edit1", "C:\Users\ashchoud\Desktop\collection.txt")
ControlClick("Open", "", "Button1")

please suggest some resolution.

ashC
Автор

Hi Mukesh,

How do we upload multiple files using single Runtime statement and multiple Commandline parameters in the autoit script?

Like, I would like to provide multiple input parameters as the files using the following
ControlSetText(“File Upload”, ””, ”Edit1″, $CmdLine[1])

the Runtime.getRuntime.exec("Path to .exe file"+" "+"list of file names to be provided here"); statement must pick multiple files from the input parameters

ArunJadhavRocco
Автор

Hi Mukesh,

I am able to upload multiple files only if there is no space between folder name (for the path where file to be uploaded from)but if there is space in between folder name then script gets failed. eg."E:\New folder(3)\mydoc.txt" in this case there is space between "New" and "folder(3)", though its working fine with single file upload.

Regards,
Amit

amitclick
Автор

Hi Mukesh,

Thanks for information in video as well as in the blog.
I followed the same way as you suggested but when i am trying to run the .exe script or my Selenium script, it is throwing 'File Not found error'. Please suggest!

Selenium code snippet:

public static void main(String[] args) throws Exception {

System.setProperty("webdriver.chrome.driver",
WebDriver driver = new ChromeDriver();

Thread.sleep(2000);



Thread.sleep(2000);


driver.quit();
}

AutoIt Code Snippet:

ControlFocus("Open", "", "Edit1")
ControlSetText("Open", "", "Edit1", $CmdLine[0])
ControlSetText("Open", "", "Edit1", $CmdLine[1])
ControlSetText("Open", "", "Edit1", $CmdLine[2])
ControlClick("Open", "", "Button1")

arkaimps
Автор

Hi,
can u share the link Data Driven Framework part3....pls..

prudhvikumar
Автор

Hello, I have a question, I am trying to upload a file from java using AutoIT but, the AutoIT program not recognize the path because it has spaces. For example I sent it "C:\Users\my files\file name.docx". AuoIt only recognize C:\Users\my. Please, please help Thanks!!

kimyflo
Автор

Hello! How can I report the test results from a TestNG/Jenkins tests, via Email and attach screenshot?

gdzcbze
Автор

Hi Mukesh, can u also explain how AutoIt script code can be called from Python..what command can be used for Python?

shwetasaha
Автор

hi Mukesh.. NO SOUND FOR THIS VIDEO... CAN YOU PLEASE REUPLOAD WITH SOUND... PLEASE...

maheshkaradi
Автор

I have used the same code and able to upload only one file and it is not trying to upload second file, also when I try to open the au3 script, got error as array variable has incorrect number of subscripts dimension range exceeded

satyavenibommakanti
Автор

Hi Mukesh, can u also explain how AutoIt script code can be called from C#..what command can be used for C#? I need Quick response..

narayanang
Автор

I don't see where or when you are passing multiple files at once...

Jonathan_Vlog
Автор

Its a good video but with sound it will make more sense

samshoaib
Автор

Hi Mukesh,
I could not able to upload files, tried so many time...could u please help me out?

varalakshmia
Автор

Sir, The audio is muted. Can you please fix it!!?

dantemix
Автор

Hi Mukesh, There is no audio for this one, kindly look into it.

SaikiranPalugula