Skip to content

sankaritan/pagenetor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Script generating selenium webdriver page-object files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages