This is an automatic Page Object generator, for the Aurelia platform. It is created just for demonstration purposes and should finally land in the Aurelia-CLI tool. Currently it parses a given html file and creates an PO template useful to get your E2E-Testing up and running faster.
For more info please visit the official site: http://www.aurelia.io/
To keep up to date on Aurelia, please visit and subscribe to the official blog. If you have questions, we invite you to join us on our Gitter Channel.
To use the generator follow these steps:
- Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
- Place the file
po.generator.js
within an working aurelia project - Install the dependencies of the generator with following commands:
npm install --save-dev cheerio
npm install --save-dev readline-sync
- Start the generator with following command from the project root:
node po.generator.js RELATIVE-PATH-TO-FILENAME PONAME
Note: the current version expects your project to have your Page Objects stored under the folder
test/e2e/src/
, if it locates an already existing file matching your inputs it will ask whether it should overwrite it.