Access the page objects from custom steps
Mekebra opened this issue · 2 comments
Mekebra commented
Seems to be a miss that one can't access the page objects
Marketionist commented
Thanks for pointing this out @Mekebra!
I just released an update to address this in #132. If you want to get access to Page Objects in your custom Cucumber steps - you can just require them inside any step definitions
file like this:
const pageObjects = require('testcafe-cucumber-steps/utils/get-page-objects.js');
Please upgrade to testcafe-cucumber-steps 1.21.0
and let me know if it works ok for you.
Marketionist commented
Closing this issue, @Mekebra please feel free to reopen if needed.