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 / 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 ?    1 Yes 0 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

Post New Answer

More Selenium Interview Questions

Different types of synchronization

1 Answers  

How does you identify the list of links present on the page

1 Answers  

Parameter list which we can send to @Test annotation

1 Answers   L&T,

sorting java array

0 Answers   SunGard,

Disadvantages of Hybrid Framework?

0 Answers   L&T,

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

2 Answers   Cube Digi,

Is QC and Jira used by both automation and as well as manual test engg or both tools are used by only manual test engg .

1 Answers   Thomson Reuters,

How does click on button without using click method

2 Answers  

@timeouts ||= what does it mean?

0 Answers  

How do you Skip Test Case from execution?

4 Answers   HCL,

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

0 Answers   Cognizant,

what are the Dynamic elements in web Application?

2 Answers   HCL, Eton,