title: Selenium NoSuchElementException: how to get around this exception for the provided case?
body: <p>I am using Selenium in the following code to automatically generate different gRNA elements(sequence of strings) using different input data. I show one example below with defined input values for the different drop down menus and input boxes. Once I have input all of the data, I attempt to select the search button. I can successfully select the button, but I cannot click to continue to the next page. This is where I get the NoSuchElementException. Is there a simple solution for this particular case? The line that fails is commented below.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  
  PATH = &quot;C:\Program Files (x86)\chromedriver.exe&quot;
  driver = webdriver.Chrome(PATH)
  driver.get(&quot;https://atum.bio/eCommerce/cas9/input&quot;)
  
  #Select Genome
  search = driver.find_element_by_id('genomeId')
  for option in search.find_elements_by_tag_name('option'):
          if option.text == 'Saccharomyces cerevisiae S288C (R64-1-1)':
                  option.click() # select() in earlier versions of webdrive
  
  #Open Target Gene
  target = driver.find_element_by_link_text(&quot;Target a genomic region&quot;)
  target.click()
  
  #Select Chromosome
  chromosome = driver.find_element_by_id('chromosomeId')
  for option in chromosome.find_elements_by_tag_name('option'):
      if option.text == '5':
                  option.click() # select() in earlier versions of webdrive
  
  start_base = driver.find_element_by_name(&quot;startBase&quot;)      
  start_base.send_keys(&quot;31694&quot;)
  end_base = driver.find_element_by_name(&quot;endBase&quot;)
  end_base.send_keys(&quot;33466&quot;)
  
  time.sleep(2)
  #Line that fails - click search to generate ranked list of guides 
  get_guide = driver.find_element_by_xpath('//*[contains(concat( &quot; &quot;, @class, &quot; &quot; ), concat( &quot; &quot;, &quot;btn-primary&quot;, &quot; &quot; ))]')
  get_guide.click()
  
  driver.quit() 
  </code></pre>