I have a container that I want to be able to click on. Here's how it looks:
<div class="CG-Item CG-B-Left ng-binding" ng-bind="SPL.showTitleText">My New SPL</div>
So I am trying to use this code to click on it:
element(by.cssContainingText('.CG-Item', 'My New SPL')).click();
But it's giving me an undefined result. Could I be overlooking something? The scenario seems similar to what's in the documentation.
https://www.protractortest.org/#/api?view=ProtractorBy.prototype.cssContainingText
Edit: I forgot to mention that there is an ng-bind attribute in the HTML element when I initially posted. I think that might be why it wasn't working.