Cucumber - Deprecated | Selenium Forum

Cucumber - Deprecated  | Selenium Forum

Cucumber - Deprecated

Cucumber.api is deprecated. so how to implement cucumber framework.

PFA the screenshot for the same.

import cucumber.api.java.en.Given;

@Given("I want to open (.*)") public void openBrowser(String browsertype) { System.out.println("Opening browser " + browsertype); //System.out.println("Opening browser " + con.name); con.openBrowser(); con.name="B"; }

Please keep all the dependency versions same as mentioned in the video.

In addition to this, i have shared pom.xml for reference.

I kept the same dependency but the cucumber.api is deprecated.

so what to use instead of cucumber.api

You will not see the deprecated warning if you use dependencies from the pom.xml provided to you in our last reply.

We offer online selenium and UFT/QTP training. The course is very comprehensive and covers every aspect of automation testing with UFT/QTP and selenium. All types of frameworks are covered in depth - data driven framework, hybrid framework, page object model with a live project

© 2020 Whizdom Trainings. All rights Reserved - Powered by Whizdom Trainings

Recommended articles