Marketionist/testcafe-cucumber-steps

Access the page objects from custom steps

Mekebra opened this issue · 2 comments

Seems to be a miss that one can't access the page objects

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.

Closing this issue, @Mekebra please feel free to reopen if needed.