Reputation: 107
Code line:
ng-click="my.Update(Profile)"
Now how will I locate this element in protractor?
Upvotes: 0
Views: 1272
Reputation: 473873
You can use a CSS selector to locate this element:
$('[ng-click="my.Update(Profile)"]');
Note that you don't have to check the complete value of the ng-click
attribute and can use a partial match instead, for instance:
$('[ng-click*=Profile]');
$('[ng-click*=Update]');
The $
is a shortcut to element(by.css())
.
Upvotes: 4