selenium+testNg报 unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}
如提示所述:是网址无效,开头少了https/http
以前怎么没发现还有这个校验?
@BeforeTest
public void before() {
driver = this.init();
System.out.println("qqqq");
}
@Test
public void test() {
driver.get("www.baidu.com");
}
@AfterTest
public void after() {
System.out.println("lllllllll");
}