Sign in to follow this  
Followers 0
harrydev

How can i pass the specific file to AutoIt from selenium and upload that particular file

4 posts in this topic

How can i pass the specific file to AutoIt from selenium and upload that particular file:

Say for example now i have created a file with name "test.doc" in a specific location using selenium with java.

And now i want to upload a document which i have created recently.

I need to pass file path to AutoIT script from Selenium and upload that file using AutoIT

How can i achieve this with AutoIT . can we extend the below

WebElement file_input = driver.findElement(By.id("id_of_button"));
file_input.sendKeys("C:SeleniumImageUpload_FF.exe");

Share this post


Link to post
Share on other sites



not knowing anything about Selenium, but the logic is that if Selenium is calling your AutoIt script, then the script can accept command line arguments and work with them. once you get that, how to upload it would require to use the IE UDF or FTP commands, depending on your case. where exactly are you stuck?

Share this post


Link to post
Share on other sites

My problem here is:

I cannot pass the exact document name / path in the AutoIt script before the document is created (document name will be keep changing).

Now i created a new document and stored in specific folder.

My exact requirement is to pick that specific document / file which is created to AutoIt and Upload it using the AutoIt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0