title: Python-Selenium cant find "id" of button to click
body: <p>This is the "button" I want my code to click, its id as u can see is: "syi-create"
  <a href="https://gyazo.com/0b03a884cb62227aeebb3dd82b1c67ff" rel="nofollow noreferrer">https://gyazo.com/0b03a884cb62227aeebb3dd82b1c67ff</a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from time import sleep
  
  
  
  browser = webdriver.Chrome("C:/Users/sebastian/desktop/chromedriver.exe")
  browser.get('https://www.dba.dk/log-ind/?returnUrl=%2F')
  
  emailStr = "Censored"
  passwdStr = "Censored"
  
  def loginDBA(username, password):
      email = browser.find_element_by_id('Email')
      email.send_keys(username)
      adgangskode = browser.find_element_by_id('Password')
      adgangskode.send_keys(password)
  
      login = browser.find_element_by_id('LoginButton')
      login.click()
  loginDBA(emailStr, passwdStr)
  
  
  
  
  opretAnnonce = browser.find_element_by_id("syi-create")
  sleep(5)
  opretAnnonce.click()
  </code></pre>
  
  <p>Note that you cant run the script, because i "censored" the username and password. So it wont login, but there is no need for that anyways.</p>
  
  <p>When you log in, that yellow button is the one I want to press. But as you might realise, for some reason it doesnt find the button. And therefor cant click it.</p>
  
  <p>Here is the error code (:</p>
  
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"id","selector":"syi-create"}
    (Session info: chrome=54.0.2840.71)
    (Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 10.0.14393 x86_64)
  </code></pre>
  
  <p>Which very specific says that I cant find the id, which is very wierd since u can see here that I did: <a href="https://gyazo.com/0b03a884cb62227aeebb3dd82b1c67ff" rel="nofollow noreferrer">https://gyazo.com/0b03a884cb62227aeebb3dd82b1c67ff</a>
  Here is another one of me searching for the "id" of the button: 
  <a href="https://gyazo.com/f4ab86efefc1bc420e71aeca93ed36ca" rel="nofollow noreferrer">https://gyazo.com/f4ab86efefc1bc420e71aeca93ed36ca</a></p>
  
  <p>What am I doing wrong?</p>