How can I use a protractor to find fading in the content of a tooltip generated by Angular-UI?

I am using Protractor and am trying to find the content of tooltips on a page. These tooltips are created with Angular-UI and fade out with moveMouse above them as shown below. These tooltips are similar to ng-bind, but I cannot use bindings to find them. Also, I tried to get the attribute of this tooltip, but that also didn't work for me, maybe the reason the protractor won't detect this element name can't be. Do you have an idea of ​​how to read the content of these tooltips? Many thanks.

<div class="col-md-2">
    <div class="form-group">
        <label class="control-label" id="label_Merchant_Number"  translate>merchant_NUM</label>
        <input ng-model='searchCriteria.MERCHANT_NUMBER' tooltip="{{'merNumber_tooltip'|translate}}" class='form-control  input-sm'  type='text' id='MERCHANT_NUMBER' name='MERCHANT_NUMBER' maxlength='16' erng-validations>
    </div>
</div>

      

+3


source to share


1 answer


we use getAttribute ('tooltip'), it works as it should ...



element(by.model('searchCriteria.MERCHANT_NUMBER')).getAttribute('tooltip');

      

+3


source







All Articles