Please use the following link to install the Katalon Studio:
https://katalon.com/sign-up?getr=kris... Check Tubebuddy Features Here:
https://www.tubebuddy.com/krishnasaki... Facebook : / automationtesting2016
Linkedin : / krishnasakinala
Google+ : https://plus.google.com/1052863009260...
Twitter : https://www.linkedin.com/feed/?trk=hb...
http://automationtesting.in/file-uplo...
File Upload using Robot Class in Selenium will discuss about how we can upload a file into web application while automating the application using selenium webdriver. As we know that selenium webdriver automates only browsers (i.e. web applications only). But sometimes we might need to automate windows based applications/popups such as upload a file or download a file etc…
But selenium can not handle these kind of scenarios. So, we will use some third party tools to automate these type of functionality. Especially uploading a file is one of the scenarios we will face while automating most of the applications. For this we will depend mostly some third party tools like AutoIt and Sikuli.
But in this blog we will NOT look into Sikuli or AutoIt to automate file upload functionality in selenium webdriver. Instead we will see one of the Java classes called Robot. Robot is a class in the AWT package of Java, by using this we can handle window based applications/popups. Now we use this provision to automate file upload functionality in selenium webdriver.
If you use some third-party tools, those are extra burden to the code or framework. And sometimes these are not compatible with the tools which we use to build the application.
So, we can use this Robot class to avoid those kind of scenarios. Basically Robot class will simulate the Keyboard and mouse actions. So, we can use the Robot class methods to handle these kind of scenarios.