Following is my code:
<span id="agText" class="ag-header-cell-text">
<span style="height: 100%;">Coordinator</span>
</span>
I was trying the following:
var cordinator = element(by.cssContainingText('#agText > span','Coordinator'));
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.
Sign up to join this communityI think you could use #agText span
e.g.
var cordinator = element(by.cssContainingText('#agText span','Coordinator'));