lundi 18 février 2019

How to E2E test data within third party package with Protractor - Angular

I am wondering if it is possible to add a unique identifier to a 3rd party package at the root html element level. For example, I am using the package myDatePicker via NPM.

I can add an ID tag to the actual html element, but nested inside of that element is an along with two that I need to add ID's to for E2E testing purposes. We are using protractor for testing.

The inspected html looks like this

<my-date-picker ... id="myDatePickerUniqueID" ...>
     <div>
        --><input **'where I want my id field'**>
     </div>
</my-date-picker>

Any help is appreciated.

Aucun commentaire:

Enregistrer un commentaire