title: Can't log in to twitter with selenium: Python
body: <p>I'm trying to log in to twitter with a bot.</p>
  <pre><code>self.browser.get('https://www.twitter.com/login') 
  sleep(20)  
  username_input = self.browser.find_element(By.XPATH,'//*[@id=&quot;react-root&quot;]/div/div/div/main/div/div/div/div[2]/div[2]/div[1]/div/div[5]/label/div/div[2]/div/input')
  sleep(20)
  username_input.send_keys(username)
  sleep(5)
  </code></pre>
  <p>But I keep getting No Such Element error:</p>
  <pre><code>NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//*[@id=&quot;react-root&quot;]/div/div/div/main/div/div/div/div[2]/div[2]/div[1]/div/div[5]/label/div/div[2]/div/input&quot;}
  </code></pre>
  <p>I copied and pasted the exact Xpath and I can't figure out why it can't find the field.</p>