each key must be a number of string; got function
问题 I have this scenario in Cucumber: Scenario Outline: Protractor and Cucumber Test InValid Given I have already...... When I fill the <number> .... Examples: | number|... | 3 |... |4 |... And I have this stepdefinition in a .js file: When('I fill the {int}',{timeout: 90 * 1000}, function(callback, number) { element(by.css("*[id='field_identificador']")).click(); element(by.css("*[id='field_identificador']")).sendKeys(number).then(callback); }); I am getting this error: each key must be a number