You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting below error:
eferenceError: firstname is not defined
at Object. (C:\Users\Desktop\nightwatch\step-definitions\UserApp_CreateNewAppAndVerify.js:189:71)
The text was updated successfully, but these errors were encountered:
I have the requirement in feature file as below,
Given User launches application
And User verifies "" "" displayed successfully
Examples:
| firstname | lastname |
| JOHN| SMITH |
in step-definition file:
Then(/^User verifies "([^"])" "([^"])" displayed successfully$/,firstname,lastname =>{
return client
.assert.containsText('/body',firstname)
}
getting below error:
eferenceError: firstname is not defined
at Object. (C:\Users\Desktop\nightwatch\step-definitions\UserApp_CreateNewAppAndVerify.js:189:71)
The text was updated successfully, but these errors were encountered: