Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 955 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 955 Bytes

Pagenetor - selenium webdriver page object generator

Script generating page-object files from JSON data object.

How to use

  1. create project folder under projects
  2. create "input_data" and "templates" folders in project folder
  3. add json file(s) with locator data (see example file)
  4. add template file to template folder, make sure the file format is: "[name_of_template].[file_extension].[tmpl]" (see example template files)
  5. set correct values in "config.properties" configuration files
  6. run "pagenerator.py"
  7. verify page object files have been created under project folder > "output" folder

Required libraries

  • pip install Jinja2

Future enhancements

  • enhance existing templates and JSON files to support generation of more complex structures
  • connect with some tool that would automatically parse locator information from pages generating output JSON file (which this script could use as input value)