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";
}
Instructor
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.
I kept the same dependency but the cucumber.api is deprecated.
so what to use instead of cucumber.api
Instructor
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.