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