I have the following element i need to find for testing:
Zugangsdaten eingeben< 相关标签:
You can find it by.css():
element(by.css('div[ng-show=notValid]')); $('div[ng-show=notValid]'); // shortcut for the above expression
Or, by.xpath():
element(by.xpath('//div[@ng-show="notValid"]'));