title: How can I select the dropdown button with by locate the ng-repeat?
body: <p>I want to do an automation test case to create a subnet. However, I could not select the classes that I want in the dropdown list.</p>
  
  <p>Below is the code that I try to use.</p>
  
  <pre><code>async setSubnetClass(classes: String) {
      let val: ElementFinder;
  
      switch (classes) {
          case "/8":
              val = element(by.repeater('prefix in prefixes').row(0));
              // val = this.VolumeType.row(0); tryyyyyyyyyyyy
              break;
          case "/9":
              val = element(by.repeater('prefix in prefixes').row(1));
              // val = this.VolumeType.row(1);
              break;
          case "/10":
              val = element(by.repeater('prefix in prefixes').row(2));
              // val = this.VolumeType.row(1);
              break;
  </code></pre>
  
  <p>and then this is the html result of the table <a href="https://i.stack.imgur.com/rEqcG.png" rel="nofollow noreferrer">html file</a></p>
  
  <pre><code>&lt;button data-toggle="dropdown" class="btn btn-default dropdown-toggle"&gt;
                      &lt;span&gt;/&amp;nbsp;{{selectedPrefix.id}}&amp;nbsp;&lt;/span&gt;
                      &lt;span style='font-size:10px;'&gt; 
  ({{selectedPrefix.usableips}} IPs)&lt;/span&gt; &lt;span class="caret"&gt;&lt;/span&gt;
          &lt;/button&gt;
  </code></pre>
  
  <p>Please teach me and give some hint on how to fix it?</p>