title: How to click add to cart button as per the given html?
body: <p>My Selenium Python script is unable to click add to cart button.</p>
  
  <p><strong>HTML code</strong>:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="button" value="Add to cart" title="Add to cart" 
  class="button-2 product-box-add-to-cart-button" onclick="AjaxCart.addproducttocart_catalog
  ('/addproducttocart/catalog/18/1/1');return false;"&gt;
  </code></pre>
  
  <p><strong>My script</strong>:</p>
  
  <pre class="lang-python prettyprint-override"><code>inputElement = driver.find_element_by_xpath("/html/body/div[7]/div[4]/div[2]/div[1]/div/div[2]/div[4]/div/div[3]/div/div[2]/div[3]/div[2]/input[3]")
  inputElement.click()
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <pre class="lang-none prettyprint-override"><code>File "C:\Users\Raghav\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: unknown error: Element &lt;input type="button" value="Add to cart" title="Add to cart" class="button-2 product-box-add-to-cart-button" onclick="AjaxCart.addproducttocart_catalog('/addproducttocart/catalog/18/1/1');return false;"&gt; is not clickable at point (1334, 635). Other element would receive the click: &lt;div class="page-loader" style="opacity: 0.924946;"&gt;...&lt;/div&gt;
  </code></pre>