title: Python selenium Error "no such element: Unable to locate element"
body: <p>I've tried for several hours to click a button on webpage with codes below but can't find solution.</p>
  <p>I tried to click it with Xpath, full-Xpath, class, but it didn't work.
  I heard that 'iframe' can occur error, but I don't see any tags named 'frame'
  (Or can the iframe tag be in the document under a different name??)</p>
  <p>For your information, when I press the button, it does not direct to a new page, but a pop-up window appears to fill out the contents.</p>
  <p><strong>Error mesaage</strong></p>
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;link text&quot;,&quot;selector&quot;:&quot;btnReleaseVendorInfoModal&quot;}
    (Session info: chrome=98.0.4758.102)
  </code></pre>
  <p><strong>button</strong></p>
  <pre><code>&lt;button type=&quot;button&quot; class=&quot;btn btn-warning btn-sm&quot; id=&quot;btnReleaseVendorInfoModal&quot;&gt; 반출기본정보 수정&lt;/button&gt;
  </code></pre>
  <p><strong>Python code</strong></p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver import ActionChains
  from selenium.webdriver.common.keys import Keys
  import time
  from selenium.common.exceptions import StaleElementReferenceException
  
  # Login
  
  # put id
  driver = webdriver.Chrome()
  driver.get(&quot;https://po-management.net/release/list&quot;)
  time.sleep(1)
  elem = driver.find_element_by_name(&quot;username&quot;)
  elem.send_keys(usernameStr)
  elem.send_keys(Keys.RETURN)
  
  time.sleep(2)
  
  # put password
  password = driver.find_element_by_xpath('//*[@id=&quot;input73&quot;]')
  try:
      ActionChains(driver).send_keys(Keys.TAB).send_keys(passwordStr).perform()
      password.send_keys(passwordStr)
  except StaleElementReferenceException:
      pass
  password.send_keys(Keys.RETURN)
  
  # redirect
  time.sleep(3)
  url = &quot;https://po-management.net/release/list&quot;
  driver.get(url)
  
  # search
  time.sleep(1)
  search = driver.find_element_by_id(&quot;releaseSeqArray&quot;)
  search.send_keys(vrorder)
  search.send_keys(Keys.RETURN)
  
  # click1
  time.sleep(1)
  driver.find_element_by_link_text(vrorder).click()
  
  # click2
  time.sleep(3)
  driver.find_element_by_link_text(&quot;btnReleaseVendorInfoModal&quot;).click()
  </code></pre>