Upload a File in Selenium WebDriver Using Robot Class

Refer to the below Links for Practise
Collections in Java
Complete List of Selenium Basics
50 Real Time Interview Questions
Real Time Scenario’s
Java Platform Standard Edition 8 Documentation
Complete List of Java Basics
Java Quiz
Java OOPS Quiz
Selenium Advanced Quiz
Selenium Quiz
Selenium WebDriver Resume

java.awt.Robot class is used to generate native system input events for the purposes of test automation, to perform mouse and keyboard actions.As interacting with windows dialog is a limitation in selenium. So, we need to use either AutoIT or Robot class in Selenium Webdriver to interact the Windows Dialog. In this topic we are discussing about the usage of Robot Class.


Test Scenario
1. Access the website url http://www.indeed.co.in.
2. Click on upload resume link.
3. Implement the Logic using the java.awt.robot to provide the absolute location of the file.

4. Capture the full page of the screenshot by providing the dimensions.

1 comment on “Upload a File in Selenium WebDriver Using Robot Class

Leave a Reply

Your email address will not be published. Required fields are marked *