qaify v0.0.0
Qaify
Generate page objects by interpreting web based applications / pages and outputting PageObjects which are an API for all of the interactive parts of the page. These can be used to control the page from a program and is especially usefull as the basis of automation tests. The output Page Object is never intended to be 100% accurate and there will always be some hand crafting involved on more complex pages. Rather the output helps by creating 'boilerplate' code.... etc...
##Configuration
The output Page Object is completely configurable by config.json
which is defined below:
###Basic properties | property | values |Comment| | --------------------- | ------------- |-------------| | datasource | mock or webdriver.io |the type of data source, this should refer to a implementation that returns an array of elements that will form the basis of the Page Object| |pageObjectType| nightwatch | the type of page object that will be output|
###Strategy The strategy with which to create the page object
property | values | Comment |
---|---|---|
selector | css selector | the selector that returns an array of elements that form the basis of the Page Object. this will usually be all elements that the user would interact with by clicking on, filling in or reading |
functionName | html attribute | The attribute that the function name will be named after. for example id='submit' for a button input will return submitButton() |
selectorAttribute | html attribute | The attribute which will for the basis of the css selector. usually id but can be any attricbute, even custom attributes like qa-data |
8 years ago