Skip to main content

Posts

Showing posts from April, 2018

Download Files (PDF, exe) using FireFox

It is so obvious that we all know when ever we try to download files it open a new window where we have to locate the folder and save or by default it downloads in DOWNLOAD folder, and we all knew we cannot automate such scenario using Selenium. So what are the solution till day ? Using Java Robot Class Using AutoIt Using Sikuli Using Java Robot Class - Disadvantage: If other windows is opened it will type in the pointer which is not handy Using AutoIt - Disadvantage: It is not quite easy, we have to store an executable file and to do the operation which is time consuming Using Sikuli - Disadvantage: Sikuli works on the basis of pattern matching (OCR), If the Operating System changes then it will not work. It is very time consuming How about if we can do the task using Selenium itself  ?  Let's have a look on the code: Check out this link to download using Chrome Click Here ! That's all for now! Spread the Love! Share post ♥ Comments are...

Download Files - Easiest Method

It is so obvious that we all know when ever we try to download files it open a new window where we have to locate the folder and save or by default it downloads in DOWNLOAD folder, and we all knew we cannot automate such scenario using Selenium. So what are the solution till day ? Using Java Robot Class Using AutoIt Using Sikuli Using Java Robot Class - Disadvantage: If other windows is opened it will type in the pointer which is not handy Using AutoIt - Disadvantage: It is not quite easy, we have to store an executable file and to do the operation which is time consuming Using Sikuli - Disadvantage: Sikuli works on the basis of pattern matching (OCR), If the Operating System changes then it will not work. It is very time consuming How about if we can do the task using Selenium itself  ?  Let's have a look on the code: So what does the code do actually? Check out to download any files using Firefox Click here ! That's all for now! Spre...