title: Python + Selenium -- Can't click on the element
body: <p>There is a dropdown on my page for order search results: </p>
  
  <pre><code>&lt;ul class="chzn-results" style="overflow-x: hidden;"&gt;
      &lt;li id="selZB4_chzn_o_0" class="active-result result-selected" style=""&gt; by popular &lt;/li&gt;
      &lt;li id="selZB4_chzn_o_1" class="active-result" style=""&gt; price (from cheap) &lt;/li&gt;
      &lt;li id="selZB4_chzn_o_2" class="active-result" style=""&gt; price (from expensive) &lt;/li&gt;
      &lt;li id="selZB4_chzn_o_3" class="active-result result-last" style=""&gt; discount &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I made a click, to open this dropdown:</p>
  
  <pre><code>action = ActionChains(driver)
  order = driver.find_element_by_xpath('/html/body/div[2]/div[1]/div/div[5]/div[2]/div[3]/div/div/div[2]/div[2]/span[2]/span[1]')
  action.move_to_element(order).click().perform()
  </code></pre>
  
  <p>Dropdown opens. Next, I want to select "from cheap" to order objects on my page, but Selenium returns AttributeError: 'list' object has no attribute 'id'.</p>
  
  <p>I tried a different ways like: </p>
  
  <pre><code>from_cheap = driver.find_elements_by_xpath("//[@id="selZB4_chzn_o_1"]")
  action.move_to_element(from_cheap).click().perform()
  </code></pre>
  
  <p>or by CSS Selector. or by id, but it still doesn't make a click. 
  Whats is my mistake?</p>