I currently have a problem with Java and Cucumber. Accessing a website's element by using Selenium, I want to use phrases like the following:
Then the value of the attribute XYZ should be 1000
That example is quite trivial and works fine for each attribute name by using the Java annotation
@Then("the value of the attribute (.*) should be (.*)")
except for the following use-case: an attribute name contains parentheses like ABC(s)
.
While using Eclipse and JUnit, a Cucumber test with a string containing parentheses like that is not even recognized completely but just the part of the string before the opening bracket. Any ideas or solutions?