Reputation: 21
I have a step defined in stepdefinition.java which is
@And(^I wait for \"(.*?)\" min$)
Can we define it as
@And(^I wait for \"(.*?)\" min(s)$)
Upvotes: 2
Views: 1392
Reputation: 199
Just for the case someone is looking for a solution working with data types on newer versions (from cucumber 4.3.0), you only have to escape the opening bracket like this:
@Then("Waehle die Option {string} \\(ersetze {string} mit {string}) in der Mehrfachauswahlliste {string}")
Upvotes: 1