title: Unable to select checkboxes with a list item in a dropdown list due to Timeoutexception
body: <p>I am trying to perform automation on a web page using chrome web driver in selenium python.  </p>
  
  <p>In one case i have a drop down list with 80 list items ,each list item preceeding with an input check box. I need to click on 2 check boxes from a given list matching with list item text.  </p>
  
  <p>Unable to select check boxes with a list item in a drop down list due to TimeoutException.</p>
  
  <p>I am getting Timeout exception while trying to click on list item with check boxes in a drop down.
  Note:</p>
  
  <p>1.Also observed a loading indicator appears once a drop down list is clicked using moveToElement.</p>
  
  <p>2.Dropdown list has around 80 list items and it has scroll bar.
  3.This dropdown list is present immediate to another drop down listed in below link.</p>
  
  <p>I followed :<a href="https://stackoverflow.com/questions/58507901/not-able-to-select-a-list-item-in-an-unordered-list-using-selenium-python">Not able to select a list item in an unordered list using selenium python</a></p>
  
  <p>Started using webdriver wait with expected Conditions concept.</p>
  
  <pre><code>   HTML :
     HTML code:
     =========
     &lt;div class="ms-drop bottom" style="display: block;"&gt;
         &lt;ul style="max-height: 400px;"&gt;
             &lt;li class="ms-select-all"&gt;      
                 &lt;label&gt;&lt;input type="checkbox" data-name="selectAlls_osVer"&gt;
                     [Select all]
                 &lt;/label&gt;    
             &lt;/li&gt;
  
             &lt;li class="" style="false"&gt;     
                 &lt;label class=""&gt;&lt;input type="checkbox" data-name="selectItems_osVer" value="KK"&gt;
                     &lt;span&gt;
                       apq40 
                     &lt;/span&gt;
                 &lt;/label&gt;        
             &lt;/li&gt;
  
             &lt;li class="" style="false"&gt;
                 &lt;label class=""&gt;&lt;input type="checkbox" data-name="selectItems_osVer" value="KK_MR1"&gt;
                     &lt;span&gt;
                       sdm845  
                     &lt;/span&gt;
                 &lt;/label&gt;        
             &lt;/li&gt;
  
             &lt;li class="" style="false"&gt;
                 &lt;label class=""&gt;&lt;input type="checkbox" data-name="selectItems_osVer" value="KK_MR2"&gt;
                     &lt;span&gt;
                       msm8996 
                     &lt;/span&gt;
                 &lt;/label&gt;        
             &lt;/li&gt;
         &lt;li class="" style="false"&gt;
                 &lt;label class=""&gt;&lt;input type="checkbox" data-name="selectItems_osVer" value="KK_MR2"&gt;
                     &lt;span&gt;
                       msm8996e 
                     &lt;/span&gt;
                 &lt;/label&gt;        
             &lt;/li&gt;
              .....
              ..... so on (approximately 80 elements are there)
         &lt;/ul&gt;
     &lt;/div&gt;
  
  </code></pre>
  
  <p>****Tried with below code but getting Time out exception:****</p>
  
  <p>Language:Python
  Driver:Selenium
  Browser:chrome
  webdriver:Chromewebdriver</p>
  
  <p>I am getting Timeout exception while trying to click on listitem with check boxes in a drop down list .</p>
  
  <pre><code>chipset = [ 'sdm845', 'msm8996e' ]
  
  for i in range(len(chipset)):
      chipset_name = "{}".format(chipset[i])
  
      WebDriverWait(driver,20).until(EC.element_to_be_clickable
      ((By.XPATH,"//div[@class='ms-drop bottom']//ul//li[.//span
  [normalize-space(text())='"+ chipset_name + "']]//input"))).click()
  </code></pre>
  
  <p>Note:
  1.Also observed a loading indicator appears once a drop down list is clicked using moveToElement.</p>
  
  <p>2.Drop down list has around 80 list items and it has scroll bar.
  This drop down list is present immediately to another drop down.</p>
  
  <ol start="3">
  <li><p>My element is visible and it is 2nd &amp; 4th list items to be selected in a drop down and it is visible. Though Time Out Exception occurs.
  Is it due to loading icon appears ?</p></li>
  <li><p>Also i would like to know how to go ahead if my desired list item to be selected is invisible and it appears at the end of the list and to make it visible i need to perform scroll down the list.</p></li>
  </ol>
  
  <p>Expected:Need to perform click operation on desired list item input check boxes matching with the each string in a given list.</p>
  
  <p>Actual: Time out Exception Appears while trying to find a list item in a dropdown containing a scroll bar.</p>