We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying https://github.com/maxgalbu/nightwatch-custom-commands-assertions/blob/master/docs/waitForAttribute.md
I'm trying to use it to wait for a button do be enabled
.waitForAttribute("@continueButton", "disabled", function(disabled) { return !disabled; });
but getting Error while running getAttribute command: Converting circular structure to JSON
Error while running getAttribute command: Converting circular structure to JSON
when i use the regular css selector, as in :
.waitForAttribute(".cart .continueButton", "disabled", function(disabled) { return !disabled; });
It works as expected.
But i'd prefer to use the page object syntax, as described in http://nightwatchjs.org/guide#page-objects
Is there a plan to add support for page objects?
The text was updated successfully, but these errors were encountered:
Uhm yes it should, there's a test for it:
nightwatch-custom-commands-assertions/tests/runTests.js
Lines 34 to 37 in 01798d4
Which version of nightwatch.js are you using?
Sorry, something went wrong.
@bradwbradw You could try elements.continueButton.selector instead of "@continueButton".
elements.continueButton.selector
"@continueButton"
Assuming you declared continueButton in an elements object.
continueButton
No branches or pull requests
I'm trying https://github.com/maxgalbu/nightwatch-custom-commands-assertions/blob/master/docs/waitForAttribute.md
I'm trying to use it to wait for a button do be enabled
but getting
Error while running getAttribute command: Converting circular structure to JSON
when i use the regular css selector, as in :
It works as expected.
But i'd prefer to use the page object syntax, as described in http://nightwatchjs.org/guide#page-objects
Is there a plan to add support for page objects?
The text was updated successfully, but these errors were encountered: