0

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'));
1

I think you could use #agText span

e.g.

var cordinator = element(by.cssContainingText('#agText span','Coordinator'));
| improve this answer | |
  • KISS principle always. – João Farias Apr 25 '17 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.