RE: Best way to Upload/Download file in selenium

Hi Lakshay

I have gone through your “Use of Autoit in selenium’ article.Is there any other way to upload and download the data/file using selenium.

Is this the batter approach or any other batter then this.

I had composed a mail @gmail with attachment,and used Robot class for that but that was not good.example..

Robot r = new Robot();

r.keyPress(KeyEvent.VK_I);

r.keyRelease(KeyEvent.VK_I);

r.keyPress(KeyEvent.VK_PERIOD);

r.keyRelease(KeyEvent.VK_PERIOD);

r.keyPress(KeyEvent.VK_J);

r.keyRelease(KeyEvent.VK_J);

r.keyPress(KeyEvent.VK_ENTER);

r.keyRelease(KeyEvent.VK_ENTER);

Actions ac = new Actions(driver);

ac.click();

 

 

Pls let me know which is mostly used

rishab Train Asked on August 20, 2014 in Selenium WebDriver.
Add Comment
2 Answers

Doctor Answered on September 8, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.