Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple arguments and implementation #435

Open
satheesh6789 opened this issue Dec 23, 2019 · 0 comments
Open

multiple arguments and implementation #435

satheesh6789 opened this issue Dec 23, 2019 · 0 comments

Comments

@satheesh6789
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant