-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Custom Command with .execute expects "selector" object, cannot provide Array or Object #2018
Comments
I can modify
Yet, when I make
|
To clarify, this error can be reproduced by running The test shows that the error only occurs when the custom command is called from a page object. |
@thaddeusreid yes, it looks like this same issue reported in #1969 and there will be a fix for that soon. |
I added a PR to the nightwatch-website-tests repo. |
I'm upgrading from 0.9.x to 1.x.x and have hit a roadblock. Looking for other's experience with my failure led me to #1237, #1882, and #1969 , however what I'm documenting hasn't been shared yet.
Sample Test
Run the test. I'm using nightwatch@1.0.18, node@10.14.1, chromedriver@2.41.0, macOS 10.14.2
Expected Behavior
I can provide Arrays and Objects to a custom command -> .execute function and the test should run without any errors.
Actual Behavior
The test fails with the following error:
I added a PR to https://github.com/aberonni/nightwatch-bug-report that includes a reproducible test of this bug: aberonni/nightwatch-bug-report#3
The text was updated successfully, but these errors were encountered: