Skip to content
New issue

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

Allow directories in pageObjects #82

Open
bkarolyi opened this issue Sep 27, 2018 · 0 comments
Open

Allow directories in pageObjects #82

bkarolyi opened this issue Sep 27, 2018 · 0 comments

Comments

@bkarolyi
Copy link
Contributor

Hi!

It would be fine if directories were allowed in pageObjects directory.

example usage:
for this file:
'page_objects/DirName/PageObject.js' :
page.DirName.PageObject.method();

Suggested solution:
global.page = requireDir(global.pageObjectPath, { camelcase: true, recurse: true });
(recurse: true option added)
in runtime/world.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant