title: Selenium multiple input fields
body: <p>I am stuck on how to enter the input value selecting a building. Initially, there will be only two empty input fields for selecting a building, as you enter one it will add an empty input field. I don't see any indexing on how to select and enter the building names one by one without overwriting them, the building values are <br>
  buil= [&quot;HillsDale&quot;,&quot;astoria&quot;,&quot;Franklin&quot;,....]<br>
  here is what the HTML looks like</p>
  <pre><code> &lt;li class=&quot;checkout-order-summary-list-added-item js-checkout-added-item&quot; data-json-object- 
     name=&quot;Building&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
          &lt;div class=&quot;item-valid-icon hidden&quot;&gt;
              &lt;span class=&quot;glyphicon glyphicon-ok&quot;&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-7 col-sm-7 col-md-6&quot;&gt;
              &lt;div class=&quot;form-group js-sku-container&quot;&gt;
                  
                  &lt;label class=&quot;control-label &quot;&gt;Building NO&lt;/label&gt;
                  &lt;input class=&quot;text form-control js-checkout-field-validation js-checkout-json-object-field js-sku-input-field generic-js-site-search-input ui-autocomplete-input&quot; type=&quot;text&quot; name=&quot;BuildingsSKU&quot; data-validation-reason=&quot;Buildings are added to order.&quot; data-json-object-name=&quot;Buildings&quot; data-update-targets=&quot;.subtotals-parts,.subtotals&quot; &gt;
                  &lt;input type=&quot;hidden&quot; class=&quot;js-hidden-sku-field&quot; value=&quot; &quot;&gt;
                  &lt;div class=&quot;js-validation-container help-block&quot;&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-5 col-sm-5 col-md-2&quot;&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label class=&quot;control-label&quot;&gt;Qty&lt;/label&gt;       
      
  &lt;input type=&quot;number&quot; min=&quot;1&quot; max=&quot;999&quot; data-range-validation-error-msg=&quot;Value should be in range from 1 to 999&quot; value=&quot;1&quot; data-toggle=&quot;tooltip&quot; qty=&quot;&quot; name=&quot;quantity&quot; class=&quot;text form-control js-checkout-json-object-field js-checkout-qty &quot;&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  &lt;li class=&quot;checkout-order-summary-list-added-item js-checkout-added-item&quot; data-json-object-name=&quot;Building&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
          &lt;div class=&quot;item-valid-icon hidden&quot;&gt;
              &lt;span class=&quot;glyphicon glyphicon-ok&quot;&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-7 col-sm-7 col-md-6&quot;&gt;
              &lt;div class=&quot;form-group js-sku-container&quot;&gt;
                  
                  &lt;label class=&quot;control-label &quot;&gt;Building NO&lt;/label&gt;
                  &lt;input class=&quot;text form-control js-checkout-field-validation js-checkout-json-object-field js-sku-input-field generic-js-site-search-input&quot; type=&quot;text&quot; name=&quot;BuildingsSKU&quot; data-validation-reason=&quot;Buildings were added to order.&quot; data-json-object-name=&quot;Buildings&quot; data-update-targets=&quot;.subtotals-parts,.subtotals&quot; &gt;
                  &lt;input type=&quot;hidden&quot; class=&quot;js-hidden-sku-field&quot; value=&quot; &quot;&gt;
                  &lt;div class=&quot;js-validation-container help-block&quot;&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-5 col-sm-5 col-md-2&quot;&gt;
              &lt;div class=&quot;form-group&quot;&gt;
         
  
       &lt;label class=&quot;control-label &quot;&gt;Qty&lt;/label&gt;
  </code></pre>
  <p>and this is what the form looks like <br></p>
  <p><a href="https://i.stack.imgur.com/yOSJ9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yOSJ9.png" alt="enter image description here" /></a></p>
  <p><br></p>
  <p>Any help really be appreciated.
  so far I have tried <br>
  driver.find_element_by_xpath(&quot;//div[contains(@class,'text form-control js-checkout-field-validation')]&quot;).send_keys(buil[0])</p>