I have a dynamic web site which is developed using angular (front end). Elements cannot be identified using ID,name etc... as they are not used to name elements. But models have used to name elements uniquely.
I'm using Selenium and TestNG at the moment. But it doesn't have any feature to capture models. I have tried using xpath. But it's risky and also hard to capture elements.
So I want to know whether there is any option to capture models(mostly)? or should I move to another tool like protractor?
Are there any other tool or framework which is good at doing this?
For an example here is the HTML code of a button. (This doesn't have any model though) Tell me if there is a method to capture the button (to click)
<button class="btn btn--02 thm--02 ng-scope" ng-click="vm.UTV = true" ng-if="!vm.UTV" style="margin: 0px;">Create</button><button class="btn btn--02 thm--02 ng-scope" ng-click="vm.UTV = true" ng-if="!vm.UTV" style="margin: 0px;">Create</button>