nightwatch
nightwatch copied to clipboard
[Enhancement] pageObject navigate with parms
Is your feature request related to a problem? Please describe. I want to use navigate with variables parameters
where props url would be something like https://jsonplaceholder.typicode.com/users/:id
and I could navigate using pO.navigate({id:1})
Describe the solution you'd like I wanted to edit navigate alias with an optional props input but I had problems following how you handle variable function inputs
This issue has been automatically marked as stale because it has not had any recent activity. If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
Thank you for setting this as an enhancement. One of the product folk will triage this again to help see when we can fit this in an upcoming sprint.
Thank you for this idea. We won't be implementing it for now as you can solve this by using string templating in JavaScript. E.g. https://nightwatchjs.org?id=${1}
You can also use custom commands to do this.
HTH