Hi All,
I'm using :
OS - Windows XP.
Selenium Webdriver (2.21).
Scripting Language : Java
Browser : Firefox 8.
I have made use of Robot Class to handle file upload.
Steps -
1) Click on Browse button using Robot class.
2) Paste the filepath to the Select File Windows Popup.
3) Press Enter using Robot class.
This was fully functional for almost 2 weeks. Yesterday, all of sudden while executing the Tests; are breaking i.e. the KeyPress and KeyRelease Event is not working.
Robot robot = new Robot();
try{
robot.keyPress(KeyEvent.VK_TAB);
robot.keyRelease(KeyEvent.VK_TAB);
}catch(AWTException e){
e.printstacktrace();
}
Surprisingly, there is no exception thrown. Can you please suggest, how to handle this Robot Class scenario effectively.
Warm Regards,
Shreyas Chaudhari.