I am using selenium to upload a file.
driver.findElement (By.id("lll")).click();
// Now, a pop up window shows up
// The window has a button "Choose File" on focus
Robot robot = new Robot();
robot.mouse // how can I click this button ? I tried KeyPress(Enter) but this click on "OK" by default
Also, the "Choose File" button has its xpath
but I do not know how to switch from the browser to the pop up window
Any suggestions?
Thanks