I'm only learning cucumber.Tell me if it's possible to get something from '(.*)' into a variable?
@Then("^ Page is '(.*)' on PDP$")
For example : @Then("^ Page is 'display' on PDP$").And I want to get the word 'display' in a variable. Because i want work with it in my method.
I want something like this
@Then("^ Page is '(.*)' on PDP$")
public void title() {
String str = '(.*)';
...
}
