Which Cucumber formatter plugin compatibale with for Java 11
Hi, I am using java 11 and below dependencies tree related sections in my maven project. But I get errorTest framework quit unexpectedly in my IntelliJ Ultimate 2019.3 I tried below versions and got the same error --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvm2SMFormatter --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvm3SMFormatter Dependency tree: +- org.springframework.boot:spring-boot-starter-web:jar:2.1.9.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.1.5.RELEASE:compile [INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.5.RELEASE:compile [INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile [INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile [INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile [INFO] +- net.serenity-bdd:serenity-core:jar:2.0.90:test [INFO] | +- net.bytebuddy:byte-buddy:jar:1.9.12:compile [INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.9.12:test [INFO] | +- com.google.inject:guice:jar:4.2.2:test [INFO] | | +- javax.inject:javax.inject:jar:1:test [INFO] | | \- aopalliance:aopalliance:jar:1.0:test [INFO] | +- org.ow2.asm:asm:jar:7.2:test [INFO] | +- org.objenesis:objenesis:jar:3.0.1:test [INFO] | +- xml-apis:xml-apis:jar:1.4.01:test [INFO] | +- commons-logging:commons-logging:jar:1.2:test [INFO] | +- io.vavr:vavr:jar:0.9.0:test [INFO] | | \- io.vavr:vavr-match:jar:0.9.0:test [INFO] | +- javax.activation:activation:jar:1.1.1:test [INFO] | +- net.serenity-bdd:serenity-report-resources:jar:2.0.90:test [INFO] | +- net.serenity-bdd:serenity-model:jar:2.0.90:test [INFO] | | +- commons-net:commons-net:jar:3.6:test [INFO] | | +- org.apache.commons:commons-text:jar:1.6:test [INFO] | | \- es.nitaur.markdown:txtmark:jar:0.16:test [INFO] | +- net.serenity-bdd:serenity-reports:jar:2.0.90:test [INFO] | | \- net.serenity-bdd:serenity-stats:jar:2.0.90:test [INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.2.71:test [INFO] | | +- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.2.71:test [INFO] | | \- org.jetbrains:annotations:jar:13.0:test [INFO] | +- com.google.code.gson:gson:jar:2.8.5:test [INFO] | +- commons-io:commons-io:jar:2.6:test [INFO] | +- org.seleniumhq.selenium:selenium-server:jar:3.141.59:test [INFO] | | +- org.seleniumhq.selenium:selenium-firefox-driver:jar:3.14.0:test [INFO] | | +- org.seleniumhq.selenium:selenium-ie-driver:jar:3.14.0:test [INFO] | | +- com.beust:jcommander:jar:1.72:test [INFO] | | +- org.apache.commons:commons-exec:jar:1.3:test [INFO] | | +- net.jcip:jcip-annotations:jar:1.0:test [INFO] | | +- org.seleniumhq.selenium:jetty-repacked:jar:9.4.12.v20180830:test [INFO] | | +- com.squareup.okhttp3:okhttp:jar:3.8.1:test [INFO] | | +- com.squareup.okio:okio:jar:1.14.0:test [INFO] | | \- javax.servlet:javax.servlet-api:jar:4.0.1:test [INFO] | +- org.seleniumhq.selenium:selenium-java:jar:3.14.0:test [INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.11:test [INFO] | +- org.seleniumhq.selenium:selenium-api:jar:3.14.0:test [INFO] | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:3.14.0:test [INFO] | +- org.seleniumhq.selenium:selenium-edge-driver:jar:3.14.0:test [INFO] | +- org.seleniumhq.selenium:selenium-remote-driver:jar:3.14.0:test [INFO] | +- org.seleniumhq.selenium:selenium-safari-driver:jar:3.14.0:test [INFO] | +- org.seleniumhq.selenium:selenium-opera-driver:jar:3.14.0:test [INFO] | +- org.seleniumhq.selenium:selenium-support:jar:3.14.0:test [INFO] | +- com.paulhammant:ngwebdriver:jar:1.1.4:test [INFO] | +- com.codeborne:phantomjsdriver:jar:1.4.4:test [INFO] | +- org.seleniumhq.selenium:htmlunit-driver:jar:2.33.0:test [INFO] | +- io.appium:java-client:jar:7.2.0:test [INFO] | | \- commons-validator:commons-validator:jar:1.6:test [INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.2:test [INFO] | | \- commons-digester:commons-digester:jar:1.8.1:test [INFO] | +- org.springframework:spring-context-support:jar:5.1.7.RELEASE:test [INFO] | +- org.codehaus.groovy:groovy:jar:2.5.7:test [INFO] | +- net.sf.opencsv:opencsv:jar:2.0:test [INFO] | +- commons-beanutils:commons-beanutils-core:jar:1.8.3:test [INFO] | +- joda-time:joda-time:jar:2.10.2:test [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.10:test [INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:test [INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:test [INFO] | +- org.apache.commons:commons-lang3:jar:3.8.1:test [INFO] | +- commons-collections:commons-collections:jar:3.2.2:test [INFO] | +- org.freemarker:freemarker:jar:2.3.28:test [INFO] | +- net.sourceforge.jexcelapi:jxl:jar:2.6.12:test [INFO] | +- net.sourceforge.htmlunit:htmlunit:jar:2.33:test [INFO] | | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.33:test [INFO] | | +- net.sourceforge.htmlunit:neko-htmlunit:jar:2.33:test [INFO] | | | \- xerces:xercesImpl:jar:2.12.0:test [INFO] | | +- net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.2.0:test [INFO] | | \- org.eclipse.jetty.websocket:websocket-client:jar:9.4.18.v20190429:test [INFO] | | +- org.eclipse.jetty:jetty-client:jar:9.4.18.v20190429:test [INFO] | | | \- org.eclipse.jetty:jetty-http:jar:9.4.18.v20190429:test [INFO] | | +- org.eclipse.jetty:jetty-xml:jar:9.4.18.v20190429:test [INFO] | | +- org.eclipse.jetty:jetty-util:jar:9.4.18.v20190429:test [INFO] | | +- org.eclipse.jetty:jetty-io:jar:9.4.18.v20190429:test [INFO] | | \- org.eclipse.jetty.websocket:websocket-common:jar:9.4.18.v20190429:test [INFO] | | \- org.eclipse.jetty.websocket:websocket-api:jar:9.4.18.v20190429:test [INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.8:test [INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.8:test [INFO] | +- org.fluentlenium:fluentlenium-core:jar:0.10.2:test [INFO] | +- com.jhlabs:filters:jar:2.0.235:test [INFO] | +- org.asciidoctor:asciidoctorj:jar:1.5.6:test [INFO] | | \- org.jruby:jruby-complete:jar:1.7.26:test [INFO] | +- org.imgscalr:imgscalr-lib:jar:4.2:test [INFO] | +- javax.el:javax.el-api:jar:2.2.4:test [INFO] | +- org.glassfish.web:javax.el:jar:2.2.4:test [INFO] | +- xalan:xalan:jar:2.7.2:test [INFO] | +- xalan:serializer:jar:2.7.2:test [INFO] | +- org.awaitility:awaitility:jar:4.0.1:test [INFO] | | \- org.hamcrest:hamcrest:jar:2.1:test [INFO] | +- com.typesafe:config:jar:1.3.1:test [INFO] | +- org.jsoup:jsoup:jar:1.10.3:test [INFO] | +- com.google.jimfs:jimfs:jar:1.1:test [INFO] +- net.serenity-bdd:serenity-cucumber4:jar:1.0.29:test [INFO] | +- net.serenity-bdd:serenity-screenplay:jar:2.0.90:test [INFO] | +- net.serenity-bdd:serenity-screenplay-webdriver:jar:2.0.90:test [INFO] | +- io.cucumber:cucumber-core:jar:4.8.0:compile [INFO] | | +- io.cucumber:gherkin:jar:5.1.0:compile [INFO] | | +- io.cucumber:tag-expressions:jar:1.1.1:compile [INFO] | | +- io.cucumber:cucumber-expressions:jar:7.0.2:compile [INFO] | | \- io.cucumber:datatable:jar:1.1.14:compile [INFO] | | \- io.cucumber:datatable-dependencies:jar:1.1.14:compile [INFO] | +- io.cucumber:datatable-matchers:jar:1.1.14:test [INFO] | \- org.apache.commons:commons-csv:jar:1.5:test [INFO] +- io.cucumber:cucumber-java:jar:4.8.0:compile [INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.0:compile [INFO] +- io.cucumber:cucumber-junit:jar:4.8.0:compile [INFO] +- net.serenity-bdd:serenity-spring:jar:2.1.12:test [INFO] \- net.serenity-bdd:serenity-rest-assured:jar:2.0.90:test [INFO] +- io.rest-assured:rest-assured:jar:3.1.1:test [INFO] | +- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:test [INFO] | +- io.rest-assured:json-path:jar:3.1.1:test [INFO] | | \- io.rest-assured:rest-assured-common:jar:3.1.1:test [INFO] | \- io.rest-assured:xml-path:jar:3.1.1:test [INFO] +- org.codehaus.groovy:groovy-xml:jar:2.5.7:test [INFO] \- org.codehaus.groovy:groovy-json:jar:2.5.7:test1.3KViews0likes0CommentsCucumber BDD + Serenity - Writing user defined methods
I am learning and using Cucumber BDD, with Serenity. I am writing a global library which will have re-usable methods. These methods are accessible from all classes/java files. I am struggling to understand how to access Webdriver object. Or, if webdriver not needed, can I directly access "element" which comes with selenium?? But the below syntax is throwing error, as "element" is not correct. 1. Should I pass "driver" as parameter for every Global method 2. I access this method from Pages. Should I pass "driver" as parameter. If so, what is the correct way to pass "driver" object to the method below. public class GlobalMethods { public void clickLinkWithText(String text){ System.out.println("Entered into clicklink with text >> " + text); element(By.xpath("//a[text()='"+text+"']")).click(); } }893Views0likes0Comments