nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

[Enhancement] pageObject navigate with parms

Open AlaaSayed794 opened this issue 3 years ago • 1 comments

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

AlaaSayed794 avatar Jan 26 '22 14:01 AlaaSayed794

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.

stale[bot] avatar Apr 28 '22 15:04 stale[bot]

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.

github-actions[bot] avatar Feb 07 '23 11:02 github-actions[bot]

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

AutomatedTester avatar Feb 07 '23 11:02 AutomatedTester