Cucumber - Deprecated | Selenium Forum
S
Siddharth Rathod Posted on 15/08/2019

Hi,

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";
}

 


A
Ashish Thakur Replied on 23/08/2019

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

 

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


S
Siddharth Rathod Replied on 23/08/2019

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

so what to use instead of cucumber.api


A
Ashish Thakur Replied on 27/08/2019

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