获取java.lang.NoClassDefFoundError:org / openqa / selenium / support / pagefactory / FieldDecorator

时间:2018-08-07 17:38:47

标签: java selenium

我有一个Java API项目,几天前运行良好。今天,我刷新了gradle构建文件,突然面对

  

java.lang.NoClassDefFoundError:org / openqa / selenium / support / pagefactory / FieldDecorator

问题。

我尝试更新build.gradle文件,但对我不起作用。

build.gradle文件:

dependencies {
    compile(
            'org.codehaus.groovy:groovy-all:2.4.11',
            'com.google.guava:guava:23.0',
            'org.apache.poi:poi:3.17',
            'org.apache.poi:poi-ooxml:3.17',
            'org.apache.poi:poi-scratchpad:3.17'


           )

    testCompile(
            'net.serenity-bdd:serenity-rest-assured:1.8.21',
            'net.serenity-bdd:serenity-core:1.8.6',
            'net.serenity-bdd:serenity-junit:1.8.6',
            'net.serenity-bdd:serenity-cucumber:1.6.7',
            'org.assertj:assertj-core:3.8.0',           
            'info.cukes:gherkin:2.12.2',
            'junit:junit:4.12',
            'org.apache.commons:commons-lang3:3.7',
            'com.opencsv:opencsv:3.7'`

0 个答案:

没有答案