dimanche 5 juin 2016

Using element name/id for elements for Testing AngularJS using Protractor

Our team is starting with Angular JS development and for testing we are using Jasmine-Karma-Protractor. The debate is whether we should use IDs for accessing DOM elements or use XPATH/CSS/Binding to access the elements since Angular doesn't really enforce use of IDs.

It is a question of best practice and I want to know what is recommended by the community. Please share what strategy is followed in your team.

Thanks.

Aucun commentaire:

Enregistrer un commentaire