Selenium+TestNG+Java报错:org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:40)

报错信息:

at org.testng.TestClass.getInstances(TestClass.java:100)

at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:40)

“java.lang.IllegalStateException”?

原因:对应浏览器的driver文件配置不正确

 

解决方法:安装相应的浏览器driver

https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver

 

 

posted @ 2018-12-10 19:39  哈哈你笑咯  阅读(308)  评论(0编辑  收藏  举报