I am having problems with defining the step and mapping it to the scenario. I have installed maven, set up the dependencies for java, and installed cucumber for java plugin altogether with external libraries in IntelliJ.
There are 3 errors occurred in this step: "Class Steps is never used" "Constructor Steps is never used" "Lambda expressions are not supported at language level"
What is the exact problem here?
import cucumber.api.PendingException;
public class Steps {
public Steps() {
Given("^I navigate to the login page$", () -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
}
}
This is the example of the Step which is created