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 .... Examples:
Solution 1:
You have your arguments in the wrong order. callback
is always the last element in the arguments list.
fix:
When('I fill the {int}',{timeout: 90 * 1000}, function(number, callback) {
element(by.css("*[id='field_identificador']")).click();
element(by.css("*[id='field_identificador']")).sendKeys(number).then(callback);
});
Post a Comment for "Each Key Must Be A Number Of String; Got Function"