How to iterate in table to find specific text using Protractor?

I have a dynamic table with 2 columns and n number of rows.In the first column there will be a title and in second column it will be the button to go into details of that title.

I want to iterate through each of the row to find specific text title and click on the second column’s button of that title.

I tried many ways searching google but couldn’t find anything.

The AngularJS code for that in HTML is as below.

<table>         <tbody>             <tr ng-repeat="registration in Registrations | orderBy:'title'" class="tableRow ng-scope">                 <td style="padding-left: 20px;" ng-if="reg.title != 'Jabc'" class="ng-binding ng-scope">test</td>             <td style="padding-left: 20px;">                 <button ng-click="enter(registration)" class="ng-binding">Enter community</button>             </td>               <tr ng-repeat="registration in Registrations | orderBy:'title'" class="tableRow ng-scope">                 <td style="padding-left: 20px;" ng-if="reg.title != 'Jabc'" class="ng-binding ng-scope">test1</td>             <td style="padding-left: 20px;">                 <button ng-click="enter(registration)" class="ng-binding">Enter community</button>             </td>                <tr ng-repeat="registration in Registrations | orderBy:'title'" class="tableRow ng-scope">                 <td style="padding-left: 20px;" ng-if="reg.title != 'Jabc'" class="ng-binding ng-scope">test2</td>             <td style="padding-left: 20px;">                 <button ng-click="enter(registration)" class="ng-binding">Enter community</button>             </td>     </tbody> </table>  

As shown in the above table there are three rows. I want to select the row by name to suppose “test1” and wants to click on the second column’s button of the same row.