Page Object as Class? #3211
Unanswered
pawlakmaly
asked this question in
Help Needed
Replies: 1 comment 1 reply
-
Yes, this is in the docs also: https://nightwatchjs.org/guide/working-with-page-objects/writing-commands.html We could add new functionality to support page objects as classes. Do you have any preference on how would that look like? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found that you can implement Page Object Commands like classes: https://github.com/nightwatchjs/nightwatch/blob/v2/test/extra/pageobjects/pages/simplePageObjWithCommandsClass.js
Is there any way that you could implement Page Object as classes in Nightwatch ?? Have anyone do so ? Any PoC is available ??
Beta Was this translation helpful? Give feedback.
All reactions