![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
Justin_1011
这个作者很懒,什么都没留下…
展开
-
AutoItX运行报错"com.jacob.com.ComFailException: Can't co-create object"
在java调用AutoItx 时候 加载dll 总是出现下面错误: com.jacob.com.ComFailException: Can't co-create object at com.jacob.com.Dispatch.createInstanceNative(Native Method) at com.jacob.com.Dispatch.(Dispatch.java:9原创 2016-08-16 10:28:43 · 4000 阅读 · 1 评论 -
Selenium 点击button 出现Windows窗口时候Selenium会Hang住!!!
1. 问题描述 使用Selenium webDriver 点击页面一个按钮,出现Print windows窗口,这时候 程序会挂住在Click操作上. 解决办法: 使用线程结合AutoItX.jar去关闭windows窗口,这样Selenium就会继续执行下面的测试脚本. 具体实现代码: // Click the Print button in the Document原创 2016-08-12 17:44:56 · 2569 阅读 · 0 评论 -
Selenium自动化Chrome浏览器 在windows/Mac/Linux下窗口最大化
For MAC or Linux: ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--kiosk"); driver = new ChromeDriver(chromeOptions); For Windows: ChromeOptions chromeOpti原创 2017-04-12 14:44:48 · 8435 阅读 · 4 评论