title: Not able to detect the element and send input to the Credit Card Number field through Selenium
body: <p>I'm trying to automate a checkout process on <a href="http://www.converse.ca" rel="nofollow noreferrer">this website</a> . I am at the 4th stage where you click the "Credit Card" option in "Payment Information" and I am trying to <code>send_keys</code> to input in my credit card numbers.</p>
  
  <p>However, I notice that after clicking the CC option, the page loads for a bit so I used an explicit wait for that element but that is not working. Any help would be appreciated.</p>
  
  <pre><code>ccNumber = session.find_element_by_css_selector('input[name=credit-card-number]')
  wait = WebDriverWait(session, 100)
  wait.until(EC.element_to_be_selected(ccNumber))
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"input[name=credit-card-number]"}
  </code></pre>