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.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Peter Gale at Aug 21, 2012 at 7:33 am
    This is not a forum for Java robot class questions.

    But you can upload a file with WebDriver by using "sendkeys" to send to full path of the file you want to up to element that controls the file uploading. The are lots fo posts on this topic if you want more details.

    Date: Mon, 20 Aug 2012 22:00:03 -0700
    Subject: [selenium-users] Java Robot Class Not working.
    From: shreyasschaudhari@gmail.com
    To: selenium-users@googlegroups.com

    Hi All,
    I'm using :
    OS - Windows XP.Selenium Webdriver (2.21).Scripting Language : JavaBrowser : 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.



    --

    You received this message because you are subscribed to the Google Groups "Selenium Users" group.

    To post to this group, send email to selenium-users@googlegroups.com.

    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.






    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedAug 21, '12 at 5:00a
activeAug 21, '12 at 7:33a
posts2
users2
websiteseleniumhq.org

2 users in discussion

Shreyas Chaudhari: 1 post Peter Gale: 1 post

People

Translate

site design / logo © 2022 Grokbase