title: Button not clicking and getting no errors with Selenium Python
body: <p><a href="https://i.stack.imgur.com/8ZdgI.png" rel="nofollow noreferrer">this buttons are not getting clicked</a></p>
  <pre><code>agree_button = driver.find_element_by_xpath('//*[@id=&quot;rightsDeclaration&quot;]')
  submit = driver.find_element_by_xpath('//*[@id=&quot;submit-work&quot;]')
  
  def upload():
    agree_button.click()
    time.sleep(1)
    submit.click()
  
  upload():
  </code></pre>
  <p>however i noticed that when the function is called, the url gets selected like this:</p>
  <p><a href="https://i.stack.imgur.com/NDfEM.png" rel="nofollow noreferrer">Url selected when the function is called</a></p>
  <p>i tried locating with the id, the name , the xpath , everything and nothing</p>
  <p>the buttons: 
  </p>
  <p>and also i notcied that the page scrolls a bit down (and not clicking ofc) and that's it. what's the problem?</p>
  <p>full code:</p>
  <pre><code>copy_settings_link = &quot;https://www.redbubble.com/portfolio/images/68171273-only-my-dog-understands-me-beagle-dog-owner-gift/duplicate&quot;
  
  
  def copy_settings():
      driver.get(copy_settings_link)
  
      replace_image_button = driver.find_element_by_xpath('//*[@id=&quot;select-image-base&quot;]')
  
      time.sleep(1)
  
      replace_image_button.send_keys(Path_list[0])
  
      upload_check = driver.find_element_by_xpath(
          '//*[@id=&quot;add-new-work&quot;]/div/div[1]/div[1]/div[1]/div')  # CHECKING UPLOAD
      while True:
          if upload_check.is_displayed() == True:
              print('Uploading...')
              time.sleep(1)
          else:
              print('Uploading Finished')
              time.sleep(1)
              break
  
  
  copy_settings()
  
  
  def upload():
      agree_button.click()
      time.sleep(1)
      submit.click()
  
  upload()
  </code></pre>