how to upload file other than autoit

Answers were Sorted based on User's Feedback

how to upload file other than autoit..

Answer / ndp

You can use both AutoIT or Robot class for upload functionality.

Is This Answer Correct ?    3 Yes 2 No

how to upload file other than autoit..

Answer / siddu

I was working on selenium scripts and came across file upload functionality. Selenium core JavaScript engine don't have capability to handle the windows pop-up due to same origin policy, so we need to relay on other tools. One of the best open source tool for handling windows objects is Autoit.

Is This Answer Correct ?    2 Yes 2 No

how to upload file other than autoit..

Answer / julie

By specifying the absolute path of the file using double backward slace(//) as an argument of sendkeys.

Is This Answer Correct ?    2 Yes 2 No

how to upload file other than autoit..

Answer / bharat

You can use ROBOT API jars to upload the file. Simply trigger the browse button and when you need to give the location of your file to upload use Robot API to send the location and then again using Robot API press enter.

try {
//Setting clipboard with file location
//native key strokes for CTRL, V and ENTER keys
Robot robot = new Robot();

} catch (Exception exp) {

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

how to test page loaded successfully?

2 Answers   L&T,

How does click on button without using click method

2 Answers  

How to capture the screenshot of failed testcase only among a set of testcases?

2 Answers   CGI, Cube Digi,

How to create batch(.bat) file after creating suite from TestNG?Can anyone explain entire process?

2 Answers   Cube Digi,

i have 2 year experience in manual testing and automation testing Selenium, if i am attending any interview what kind of question i will get?

1 Answers   IBM, Ind Swift,

@timeouts ||= what does it mean?

0 Answers  

Different types of synchronization

1 Answers  

How to find the xpath of web table chrome or internet explorer.or without using fire bug.?

0 Answers   Cognizant,

How do you Upload or Download a File in Web Application?

2 Answers   HCL,

What are the different type of locators?

2 Answers   Genpact,

its urgent, am trying for jobs. can anyone tell me please in corporate environment , how do we generate reports using selenium? is it default report or xslt report or custom report?? its very urgent.. thanks in advance

2 Answers  

Who is the best faculty for selenium in twin cities (Hyderabad/secundrabad)

2 Answers   NA, KJL,