As a result, following exception is thrown
groovy.lang.MissingMethodException: No signature of method: cucumber.runtime.groovy.GroovyWorld.contains() is applicable for argument types: (String) values: [q]
when using
browser.$('input', name: contains('q')) << term + Keys.ENTER
but this works fine
browser.$('input', name: 'q') << term + Keys.ENTER
Sample project is attached to this discussion here