Sir,
i tried this too:
public static void clickAndSaveFileIE() throws InterruptedException{
try{
Robot robot = new Robot();
//element.sendKeys("");
robot.keyPress(KeyEvent.VK_ENTER);
robot.keyRelease(KeyEvent.VK_ENTER); //wait for the modal dialog to open
Thread.sleep(2000); //press s key to save
robot.keyPress(KeyEvent.VK_S);
robot.keyRelease(KeyEvent.VK_S);
Thread.sleep(2000); //press enter to save the file with default name and in default location
robot.keyPress(KeyEvent.VK_ENTER);
robot.keyRelease(KeyEvent.VK_ENTER);
} catch (AWTException e) {
e.printStackTrace();
}
}
[b:16i0q1am][b]i called this function.......
Query:Still does not work[/b:16i0q1am]
Request for your inputs.[/b]
Tried Robot class sir ....Dint work..
Retried AUTOIT...worked after a lot of trial & errors ...Thankz alot for your inputs