qmetry automation framework angular web support - custom locator stretegies specific to angularjs
This provides following angular specific locator stretegy using ngWebDriver by @paul-hammant
- angular-model
- angular-binding
- angular-exact-binding
- angular-options
- angular-repeater
- angular-exact-repeater
- angular-buttontext
- angular-partial-buttontext
- Add qaf-support-angular dependency to your project
- Provide root selector using
angular.root.selector
property. Default value is[ng-app]
- Use any of the locator strategy listed above. For example, to find element using angulare model locator strategy:
my.eleusing.angmodel=angular-model=modelname
#self decriptive
my.eleusing.angmodel={'locator':'angular-model=<locator value>','desc':'example element on sample page'}
See also utility methods and custom element