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 tried to define custom element that inherits faltest Element:
Element
const { Element: _Element } = require('@faltest/page-objects'); class Element extends _Element { async foo() { await super.click(); await ...; } }
And then I tried to use it in my code:
... button: create( '[data-test-my-button]', ), ... click: async() => { await pageObject.button.foo(); } ...
But this ends with:
TypeError: pageObject.button.foo is not a function
The text was updated successfully, but these errors were encountered:
Notes for my future self:
maybe it could via the prototype chain of the class container? or you could set it in the constructor?
Sorry, something went wrong.
No branches or pull requests
I tried to define custom element that inherits faltest
Element
:And then I tried to use it in my code:
But this ends with:
The text was updated successfully, but these errors were encountered: