title: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element using Selenium and Python
body: <p>Unable to interact with href link.</p>
  
  <p>Code trials:</p>
  
  <pre><code>browser = webdriver.Chrome() 
  browser.implicitly_wait(5) 
  browser.get(URL) 
  webbrowser.open(URL) 
  #if Size == 'Large': 
  ClickS =browser.find_element_by_id('product-select').click() 
  SizeS = browser.find_element_by_xpath("//option[@value='12218866696317']").click() 
  #Send to cart 
  AddtoCart = browser.find_element_by_css_selector("input[type='submit']").click() 
  GotoCart = browser.find_element_by_partial_link_text("Cart").click()
  </code></pre>
  
  <p>Code and Error snapshot:</p>
  
  <p><a href="https://i.stack.imgur.com/GMCuA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GMCuA.png" alt="enter image description here"></a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;a href="/cart" class="cart-heading"&gt;Cart&lt;/a&gt;
  </code></pre>
  
  <p>HTML Snapshot:</p>
  
  <p><a href="https://i.stack.imgur.com/HhGaW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HhGaW.png" alt="enter image description here"></a></p>