title: Python Selenium: ElementNotInteractableException error on click()
body: <p>I run the script and it gives me one of two errors:</p>
  
  <pre><code>selenium.common.exceptions.ElementNotInteractableException: Message: Element &lt;a class="grid_size in-stock" href="javascript:void(0);"&gt; could not be scrolled into view
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Element not found error
  </code></pre>
  
  <p>Right now this is the error it's giving. Sometimes it works, sometimes it doesn't. I have been trying to change the timing around to get it working right but to no avail. It will not work.</p>
  
  <p>Code:</p>
  
  <pre><code>import requests
  from selenium.webdriver.support import ui
  
  from selenium import webdriver
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  
  
  
  def get_page(model, sku):
      url = "https://www.footlocker.com/product/model:"+str(model)+"/sku:"+ str(sku)+"/"
      return url 
  
  browser = webdriver.Firefox()
  page=browser.get(get_page(277097,"8448001"))
  browser.find_element_by_xpath("//*[@id='pdp_size_select_mask']").click()
  link = ui.WebDriverWait(browser, 10).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "#size_selection_list")))
  browser.find_element_by_css_selector('#size_selection_list').click()
  browser.find_element_by_css_selector('#size_selection_list &gt; a:nth-child(8)').click()
  browser.find_element_by_xpath("//*[@id='pdp_addtocart_button']").click()
  checkout = browser.get('https://www.footlocker.com/shoppingcart/default.cfm?sku=')
  checkoutbutton = browser.find_element_by_css_selector('#cart_checkout_button').click()
  </code></pre>