java.lang.NoClassDefFoundError: org/openqa/selenium/AcceptedW3CCapabilityKeys #3326
Unanswered
soulsreaver666
asked this question in
Q&A
Replies: 3 comments 2 replies
-
java.lang.NoClassDefFoundError: org/openqa/selenium/AcceptedW3CCapabilityKeys - that would be a version conflict with Selenium |
Beta Was this translation helpful? Give feedback.
2 replies
-
yep, but I'm not using any separate selenium dep in my build.gradle :
buildscript {
ext {
serenityCoreVersion = '4.0.19'
junitVersion = '4.13.1'
}
repositories {
mavenLocal()
if (project.hasProperty("jenkinsBuild")) {
maven {
url 'http://nexus.concardis.local:8081/repository/maven-titans/'
allowInsecureProtocol = true
}
}
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:7.1.0.1'
classpath 'net.serenity-bdd:serenity-gradle-plugin:4.0.15'
}
}
plugins {
id "com.github.spotbugs" version '5.0.6'
id "io.spring.dependency-management" version "1.0.11.RELEASE"
id "checkstyle"
id 'io.freefair.lombok' version '6.4.3'
}
apply from: '../services/versions.gradle'
apply from: 'versions.gradle'
apply from: '../services/common-methods.gradle'
apply plugin: 'idea'
apply plugin: "java"
apply plugin: "net.serenity-bdd.serenity-gradle-plugin"
apply plugin: "com.github.spotbugs"
repositories {
mavenLocal()
if (project.hasProperty("jenkinsBuild")) {
maven {
url 'http://nexus.concardis.local:8081/repository/maven-titans/'
allowInsecureProtocol = true
}
}
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://packages.confluent.io/maven/' }
}
spotbugs {
toolVersion = '4.5.3'
}
checkstyle {
configDirectory = file("../services/config/checkstyle")
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
task copyNordicsDocs(type: Copy) {
from '../services/aml/src/main/resources/camunda/nordics/xlsx'
into 'src/test/resources/files/nordics/camunda'
}
task copyDachDocs(type: Copy) {
from '../services/aml/src/main/resources/camunda/dach/xlsx'
into 'src/test/resources/files/dach/camunda'
}
task copyOddDocs(type: Copy) {
from '../services/odd/src/main/resources/camunda/nordics/xlsx'
into 'src/test/resources/files/odd/camunda'
}
task copyDocs(type: Copy) {
dependsOn 'copyNordicsDocs'
dependsOn 'copyDachDocs'
dependsOn 'copyOddDocs'
}
subprojects {
repositories {
mavenLocal()
if (project.hasProperty("jenkinsBuild")) {
maven {
url 'http://nexus.concardis.local:8081/repository/maven-titans/'
allowInsecureProtocol = true
}
}
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://packages.confluent.io/maven/' }
}
buildscript {
repositories {
mavenLocal()
if (project.hasProperty("jenkinsBuild")) {
maven {
url
'http://nexus.concardis.local:8081/repository/maven-titans/'
allowInsecureProtocol = true
}
}
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'project-report'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'io.freefair.lombok'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
reports.html.required = true
systemProperty "file.encoding", "utf-8"
}
dependencyManagement {
imports {
mavenBom
"org.springframework.boot:spring-boot-dependencies:${SPRING_BOOT_VERSION}"
}
}
}
group = 'com.concardis'
version = '0.0.1-SNAPSHOT'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
outputs.upToDateWhen { false }
systemProperty "file.encoding", "utf-8"
}
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
excludeFilter = rootProject.file('config/spotbugs/exclude.xml')
reports {
xml.required = true
html.required = false
}
}
tasks.withType(Checkstyle) {
reports {
xml.required = true
html.required = false
}
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
preferProjectModules()
}
}
dependencies {
testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
testImplementation project(':model-aml')
testImplementation project(':model-catalyst-v2')
testImplementation project(':model-portal')
testImplementation project(':model-netspay')
testImplementation project(':model-netspay-db')
testImplementation project(':model-graphql')
testImplementation project(':model-edw')
testImplementation project(':model-iban')
testImplementation project(':model-odd-db')
testImplementation project(':model-reporting-etl-db')
testImplementation project(':jms-sender')
testImplementation project(':model-bundesanzeiger')
testImplementation project(':model-bundesanzeiger-db')
testImplementation project(':model-risk-assessment-case-db')
testImplementation "org.skyscreamer:jsonassert:1.5.0"
testImplementation "org.assertj:assertj-core"
testImplementation "org.codehaus.janino:janino:3.1.6"
testImplementation "org.apache.poi:poi-ooxml:5.0.0"
testImplementation "ch.qos.logback:logback-classic:1.2.7"
testImplementation "org.modelmapper:modelmapper:2.4.5"
testImplementation "org.apache.commons:commons-collections4:4.4"
testImplementation "org.apache.commons:commons-lang3:3.8.1"
testImplementation "org.apache.commons:commons-math3:3.6.1"
testImplementation "org.apache.cxf:cxf-spring-boot-starter-jaxws:3.2.2"
testImplementation "com.neovisionaries:nv-i18n:1.28"
testImplementation "org.jeasy:easy-random-core:5.0.0"
testImplementation "org.jeasy:easy-random-randomizers:5.0.0"
testImplementation "org.jeasy:easy-random-bean-validation:5.0.0"
testImplementation "org.awaitility:awaitility:4.2.0"
testImplementation "org.mongodb:mongo-java-driver:3.12.8"
testImplementation "com.opencsv:opencsv:5.3"
testImplementation "org.codehaus.jackson:jackson-mapper-asl:1.9.13"
testImplementation "com.microsoft.sqlserver:mssql-jdbc"
testImplementation
"com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.5.0"
testImplementation "com.hierynomus:sshj:0.27.0"
testImplementation "net.serenity-bdd:serenity-core:${serenityCoreVersion}",
"net.serenity-bdd:serenity-shutterbug:${serenityCoreVersion}",
"net.serenity-bdd:serenity-cucumber:${serenityCoreVersion}",
"net.serenity-bdd:serenity-screenplay:${serenityCoreVersion}",
"net.serenity-bdd:serenity-screenplay-webdriver:${serenityCoreVersion}",
"net.serenity-bdd:serenity-ensure:${serenityCoreVersion}",
"io.cucumber:cucumber-junit-platform-engine:7.11.1",
"org.junit.platform:junit-platform-suite:1.9.2",
"junit:junit:${junitVersion}"
testImplementation "com.rabbitmq:amqp-client:5.13.1"
testImplementation 'io.zipkin.brave:brave:5.13.9'
testImplementation "com.google.code.findbugs:jsr305:3.0.2"
testImplementation
"org.apache.geronimo.specs:geronimo-jms_2.0_spec:1.0-alpha-2"
testImplementation "com.azure:azure-storage-blob:12.21.0"
testImplementation("io.rest-assured:rest-assured:5.3.0")
testImplementation("io.rest-assured:json-path:5.3.0")
testImplementation("io.rest-assured:xml-path:5.3.0")
testImplementation("io.rest-assured:rest-assured-all:5.3.0")
testImplementation
"org.springframework.boot:spring-boot-starter-data-mongodb:${SPRING_BOOT_VERSION}"
testImplementation group: 'io.github.bonigarcia', name:
'webdrivermanager', version: '5.4.1'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
}
dependencyManagement {
imports {
mavenBom
"org.springframework.boot:spring-boot-dependencies:${SPRING_BOOT_VERSION}"
}
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
systemProperties System.getProperties()
}
gradle.startParameter.continueOnFailure = true
compileTestJava.dependsOn copyDocs
pon., 13 lis 2023 o 13:23 John Ferguson Smart ***@***.***>
napisał(a):
… Make sure you are using the Selenium version that works with the version
of Serenity you are using - the simplest is to use the latest version of
each, and not to add your own selenium dependencies
—
Reply to this email directly, view it on GitHub
<#3326 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR34SBM4DS2K7EIUB7Y5VNDYEIGMBAVCNFSM6AAAAAA7I5V44OVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKNJTGQ2DO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
--
<< pozdrawiam Biesek Przemysław >>
<<There is something dark with me >>
<< now I can feel it >>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all.
Recently I updated version od serenity an jUnit to use jUnit4 parallel tests. Api tests are working without problems but when I'm trying to run UI tests I'm getting folllowing error :
10:28:38.795 [main] WARN net.thucydides.core.pages.Pages - Failed to instantiate page of type class com.nexigroup.ms.amlkyc.pages.CrrAssessmentViewerPage ({})
java.lang.NoClassDefFoundError: org/openqa/selenium/AcceptedW3CCapabilityKeys
at net.thucydides.core.webdriver.appium.AppiumConfiguration.(AppiumConfiguration.java:36)
at net.thucydides.core.webdriver.ElementLocatorFactorySelector.(ElementLocatorFactorySelector.java:27)
at net.thucydides.core.webdriver.ElementLocatorFactorySelector.(ElementLocatorFactorySelector.java:21)
at net.thucydides.core.annotations.locators.SmartElementProxyCreator.locatorFactories(SmartElementProxyCreator.java:27)
at net.thucydides.core.annotations.locators.SmartElementProxyCreator.proxyElements(SmartElementProxyCreator.java:21)
at net.thucydides.core.webdriver.DefaultPageObjectInitialiser.apply(DefaultPageObjectInitialiser.java:20)
at net.serenitybdd.core.pages.PageObject.setDriver(PageObject.java:167)
at net.serenitybdd.core.pages.PageObject.setDriver(PageObject.java:171)
at com.nexigroup.ms.amlkyc.pages.GenericPageObject.(GenericPageObject.java:21)
at com.nexigroup.ms.amlkyc.pages.CrrAssessmentViewerPage.(CrrAssessmentViewerPage.java:46)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at net.thucydides.core.pages.Pages.createFromConstructorWithWebdriver(Pages.java:270)
at net.thucydides.core.pages.Pages.getCurrentPageOfType(Pages.java:208)
at net.thucydides.core.pages.Pages.getPage(Pages.java:90)
at com.nexigroup.ms.amlkyc.stepdefinitions.CrrAssessmentViewerUITestsSteps.(CrrAssessmentViewerUITestsSteps.java:75)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at cucumber.runtime.SerenityObjectFactory.newInstance(SerenityObjectFactory.java:69)
at cucumber.runtime.SerenityObjectFactory.cacheNewInstance(SerenityObjectFactory.java:57)
at cucumber.runtime.SerenityObjectFactory.getInstance(SerenityObjectFactory.java:47)
at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
at io.cucumber.java.JavaStepDefinition.execute(JavaStepDefinition.java:29)
at io.cucumber.core.runner.CoreStepDefinition.execute(CoreStepDefinition.java:66)
at io.cucumber.core.runner.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:63)
at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:84)
at io.cucumber.core.runner.TestStep.run(TestStep.java:56)
at io.cucumber.core.runner.PickleStepTestStep.run(PickleStepTestStep.java:51)
at io.cucumber.core.runner.TestCase.run(TestCase.java:84)
at io.cucumber.core.runner.Runner.runPickle(Runner.java:75)
at io.cucumber.core.runtime.Runtime.lambda$executePickle$6(Runtime.java:107)
at io.cucumber.core.runtime.CucumberExecutionContext.lambda$runTestCase$5(CucumberExecutionContext.java:137)
at io.cucumber.core.runtime.RethrowingThrowableCollector.executeAndThrow(RethrowingThrowableCollector.java:23)
at io.cucumber.core.runtime.CucumberExecutionContext.runTestCase(CucumberExecutionContext.java:137)
at io.cucumber.core.runtime.Runtime.lambda$executePickle$7(Runtime.java:107)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.cucumber.core.runtime.Runtime$SameThreadExecutorService.execute(Runtime.java:235)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
at io.cucumber.core.runtime.Runtime.lambda$runFeatures$3(Runtime.java:89)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.SliceOps$1$1.accept(SliceOps.java:200)
at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1602)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at io.cucumber.core.runtime.Runtime.runFeatures(Runtime.java:90)
at io.cucumber.core.runtime.Runtime.lambda$run$0(Runtime.java:78)
at io.cucumber.core.runtime.CucumberExecutionContext.lambda$runFeatures$6(CucumberExecutionContext.java:148)
at io.cucumber.core.runtime.CucumberExecutionContext.execute(CucumberExecutionContext.java:163)
at io.cucumber.core.runtime.CucumberExecutionContext.runFeatures(CucumberExecutionContext.java:146)
at io.cucumber.core.runtime.Runtime.run(Runtime.java:78)
at net.serenitybdd.cucumber.cli.Main.run(Main.java:27)
at net.serenitybdd.cucumber.cli.Main.main(Main.java:18)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.AcceptedW3CCapabilityKeys
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 65 common frames omitted
Strange thing is I'm not using appium at all. Can anyone help me with that ?
Beta Was this translation helpful? Give feedback.
All reactions