如果不添加最后一个jar包
报错行为
WebDriver driver = new ChromeDriver();
报错如下:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at seleniumLearn.demo1.main(demo1.java:14)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
绑定端口
显示等待
form表单
input元素-radio
junit-@before @after @test 断言
Visual C++ Express
点击按钮后,打开新窗口,返回到原来的父窗口
网友评论