title: Selenium (Java) - getting list ids based on other attribute
body: <p>I've got a html snippet like this:</p>
  
  <pre><code>&lt;div class="hb-felt"&gt;
     &lt;ul class="hb-feltlist"&gt;
        &lt;li data-selector="refusal_alt" class="ng-star-inserted"&gt;
          &lt;input class="hb-checkbox ng-untouched ng-pristine ng-valid" 
           disableelementilesemodus="" type="checkbox" 
           id="refusalTooExpensive"&gt;
          &lt;label class="hb-label" for="refusalTooExpensive"&gt;Too 
           expensive
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li data-selector="refusal_alt" class="ng-star-inserted"&gt;
           &lt;input class="hb-checkbox ng-untouched ng-pristine ng-valid" 
            disableelementilesemodus="" type="checkbox" 
            id="refusalInvalid"&gt;
           &lt;label class="hb-label" for="refusalInvalid"&gt;Invalid&lt;/label&gt;
        &lt;/li&gt;
        &lt;li data-selector="refusal_alt" class="ng-star-inserted"&gt;
           &lt;input class="hb-checkbox ng-untouched ng-pristine ng-valid" 
            disableelementilesemodus="" type="checkbox" 
            id="refusalEconomy"&gt;
           &lt;label class="hb-label" for="refusalEconomy"&gt;Economy-related 
            refusal&lt;/label&gt;
        &lt;/li&gt;
        &lt;li data-selector="refusal_alt" class="ng-star-inserted"&gt;
           &lt;input class="hb-checkbox ng-untouched ng-pristine ng-valid" 
            disableelementilesemodus="" type="checkbox" 
            id="refusalLackingPrimaryFunds"&gt;
           &lt;label class="hb-label" for="refusalLackingPrimaryFunds"&gt;Lacking 
            primary funds&lt;/label&gt;
        &lt;/li&gt;
        &lt;li data-selector="refusal_alt" class="ng-star-inserted"&gt;
           &lt;input class="hb-checkbox ng-untouched ng-pristine ng-valid" 
            disableelementilesemodus="" type="checkbox" 
            id="refusalSecondaryFunds"&gt;
           &lt;label class="hb-label" for="refusalSecondaryFunds"&gt;Lacking 
            secondary funds&lt;/label&gt;
        &lt;/li&gt;
        &lt;li data-selector="refusal_alt" class="ng-star-inserted"&gt;
           &lt;input class="hb-checkbox ng-valid ng-dirty ng-touched" 
            disableelementilesemodus="" type="checkbox" id="refusalOther"&gt;
           &lt;label class="hb-label" for="refusalOther"&gt;Other&lt;/label&gt;
        &lt;/li&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, each list element includes the tag <code>data-selector="refusal_alt"</code>. This is identical for all elements.</p>
  
  <p>This is a dynamically created list, and the id-tag and the label text will differ (but the data-selector will allways be the same).</p>
  
  <p>What's the best way for Selenium to go through this and make a list of all the id tags or the label text?</p>