java.lang.VerifyError:无法从最终类继承--Selenium 3.81

时间:2018-02-03 13:09:01

标签: java selenium testing automation

    String path=System.getProperty("user.dir");
    System.setProperty("webdriver.gecko.driver", path+"/driver/windowgecko.exe"); 

    WebDriver driver= new FirefoxDriver();
            driver.get("https://www.google.co.in/?gfe_rd=cr&dcr=0ei=rrJ1WvqJAe_H8gfwi4GQAg");

当我使用上面的代码使用selenium 3.8运行我的示例脚本时,我得到“java.lang.VerifyError:无法继承最终类”

我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

我刚用最新的maven selenium版本测试了你的代码,它是selenium 3.8.1

看起来不是您的代码产生错误。也许检查你的库和依赖项。 :)