I want to know if is possible to pass an object to a step of Behat.
For example, a field of my form will be fill in with a Object. It’s fill in with a Object which you can select in a suggestion box. I know the other way with sahi or selenium, but I don’t want this, I want a step like this: “When I fill in “field” with object”. It’s possible?
Sorry if I do not explain it very well.
How would you convert a string from Gherkin to an object?
Try argument transformations: http://docs.behat.org/guides/2.definitions.html#step-argument-transformations
However, I doubt you really want to pass an object to a select box (how would you do that in a browser??).
I’d rather use: