title: Selenium Xpath, can someone help me with this find.element
body: <p>I have been really banging my head on this, I can't figure out my problem, if someone can help me it would be appreciated, thank you :).</p>
  <p>I'm trying to select with Xpath the twitter search box, from what I know, my input is correct, since on google when I press Ctrl+F and search for it in the &quot;inspect mode&quot; it's highlighting in yellow the search box input tag. But in selenium, I wish it was.</p>
  <p>(Using google chrome)</p>
  <pre><code>import csv
  from getpass import getpass
  import time
  from time import sleep
  from selenium.webdriver.common.keys import Keys
  from selenium.common.exceptions import NoSuchElementException
  from selenium import webdriver
  
  
  #other selenium code, working.
  
  
  twitterS = driver.find_element_by_xpath('//input[contains(@data-testid,&quot;SearchBox&quot;)]')
  </code></pre>
  <p>Return</p>
  <pre><code>selenium.common.exceptions.NoSuchElementException: 
  Message: no such element: Unable to locate element: 
  {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//input[contains(@data-testid,&quot;SearchBox&quot;)]&quot;}
  </code></pre>
  <p>I tried the relative path, not working either</p>
  <pre><code>/html/body/div[1]/div/div/div[2]/main/div/div/div/div[2]/div/div[2]/div/div/div/div[1]/div/div/div/form/div[1]/div/div/div[2]/input
  </code></pre>