title: Unable to find elements from the table using protractor
body: <p>Unable to locate the element in the table using protractor and bluebird promise concepts </p>
  
  <p>HTML page - using angular JS:</p>
  
  <pre><code>&lt;tr data-ng-repeat="tableRow in $ctrl.tableResults track by $index" id="case-list-table-row" class="ng-scope" style=""&gt;&lt;!-- ngRepeat: tableTitle in $ctrl.tableTitles --&gt;&lt;td data-ng-repeat="tableTitle in $ctrl.tableTitles" id="case-list-table-cell" class="ng-binding ng-scope"&gt;TFL7123631607&lt;/td&gt;&lt;!-- end ngRepeat: tableTitle in $ctrl.tableTitles --&gt;&lt;td data-ng-repeat="tableTitle in $ctrl.tableTitles" id="case-list-table-cell" class="ng-binding ng-scope"&gt;34&lt;/td&gt;&lt;!-- end ngRepeat: tableTitle in $ctrl.tableTitles --&gt;&lt;td data-ng-repeat="tableTitle in $ctrl.tableTitles" id="case-list-table-cell" class="ng-binding ng-scope"&gt;TFL&lt;/td&gt;&lt;!-- end ngRepeat: tableTitle in $ctrl.tableTitles --&gt;&lt;td data-ng-repeat="tableTitle in $ctrl.tableTitles" id="case-list-table-cell" class="ng-binding ng-scope"&gt;No Plea&lt;/td&gt;&lt;!-- end ngRepeat: tableTitle in $ctrl.tableTitles --&gt;
  </code></pre>
  
  <p>Code used to search and return the prose value:</p>
  
  <pre><code>this.searchIndex = function (myurn) {
   return(()=&gt; {
         var my_table = element(by.css("case-list-table tbody tr"));
         var td = my_table.element(by.css("td:first-child"));
  
         element.all(td.each(function (element, index) {
           element.getText().then(function (text) {
             console.log("outer" + text);
             console.log(index, text);
             if (text.matches(myurn)) {
               console.log("Inner" + text);
               return promise.props({ index:index});
                    }
           });
         });
       });
     };
  </code></pre>
  
  <p>I am trying to find ID by looping though columns in the page and return index. So that I get individual filed element using index and then compare all the fields </p>