WebDriver click on “Java window”

房东的猫 提交于 2019-12-25 14:26:37

问题


I'm saving files from the Application, and have this save window:



Here to press "OK" button I used next method:

Robot robot = new Robot();
    robot.keyPress(KeyEvent.VK_ENTER);
    robot.keyRelease(KeyEvent.VK_ENTER);

After this window Java Loading application to open it:

And After this I have this window and previous code doesn't work here, I can't press Enter: Who know how to Click on "Run" on the last screenshot?


回答1:


I think again it will be a lot easier to use Sikuli for the job. You can do it with the simplest hello world example- http://doc.sikuli.org/tutorials/helloworld/helloworld-win.html



来源:https://stackoverflow.com/questions/31853031/webdriver-click-on-java-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!