title: How do i click an element using selenium from a long drop down list?
body: <p>I'm trying to click on a element let's say a list of countries from a drop down list, but i'm able to click only first few countries using xpath, when i try to click the last country seems the click not working.Here is the code(it works for first few countries but i want to click the last country from the drop down list)
  If someone help me that would be appreciated!</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait as wait
  import time
  
  
  driver = webdriver.Chrome()
  driver.get('https://www.example.com/dropdown')
  
  ##click accept cookies button
  wait(driver, 5).until(EC.visibility_of_element_located(
      (By.XPATH, '//div[@class="cookie-button-wrapper"]'))).click()
  
  ##time delay
  time.sleep(20)
  
  ##click on specific country from the dropdown
  wait(driver, 5).until(EC.visibility_of_element_located(
      (By.XPATH, '//div[@class="tv-dropdown__button tv-dropdown-behavior__button tv-screener-market-select__button js-screener-market-button apply-common-tooltip common-tooltip-fixed"]'))).click()
  wait(driver, 5).until(EC.visibility_of_element_located(
      (By.XPATH, '//*[@data-market="argentina"]'))).click() 
  </code></pre>