title: How to verify text within first column of Angular Grid in Protractor test?
body: <p>As part of a Protractor test on my Angular app, I am trying to validate the text within the cells in the first column of an <a href="https://www.ag-grid.com/angular-grid/" rel="nofollow noreferrer">Angular Grid.</a></p>
  <p>The below code validates the text of each cell of the grid:</p>
  <pre><code>element.all(by.css('div.ag-cell'))
    .map(function (cell) {
        return cell.getText();
        })
      .then(function (cellValues) {
          expect(cellValues).toEqual([&quot;Toyota&quot;, &quot;Ford&quot;, &quot;Porsche&quot;]);
          });
  </code></pre>
  <p>When ran against the below table, this code will check &quot;Toyota&quot;, &quot;Celica&quot;, &quot;35000&quot;, &quot;Ford&quot;, &quot;Mondeo&quot;, etc. <em>(i.e. each cell)</em></p>
  <p>However, I want the test to only validate &quot;Toyota&quot;, &quot;Ford&quot;, &amp; &quot;Porsche&quot; <em>(i.e. the first column of this <a href="https://www.ag-grid.com/javascript-grid-e2e-test-with-jasmine/" rel="nofollow noreferrer">Angular Grid</a>)</em>:</p>
  <p><a href="https://i.stack.imgur.com/jru2G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jru2G.png" alt="table" /></a></p>
  <p>Can someone please tell me what changes I need to make for this?</p>
  <p><em>Note: If <code>aria-colindex=&quot;1&quot;</code> <code>left: 0px;&quot;</code> can be used as a selector, then I think I would be able to use that.</em></p>