title: Scraping etoro with python
body: <p>I'm trying to use Selenium to automatically connect to my etoro account and get some figures from my portfolio. I work on Google Colab and from now, here is what I have:</p>
  <pre><code>from selenium import webdriver
  
  options = webdriver.ChromeOptions()
  options.add_argument('--headless')
  options.add_argument('--no-sandbox')
  options.add_argument('--disable-dev-shm-usage')
  
  wd = webdriver.Chrome(options=options)
  wd.get(&quot;https://www.etoro.com/fr/login&quot;)
  
  username = &quot;username@mail.com&quot;
  password = &quot;password&quot;
  
  elementID = wd.find_element_by_css_selector(&quot;input[automation-id='login-sts-username-input']&quot;)
  elementID.send_keys(username)
  elementID = wd.find_element_by_id(&quot;password&quot;)
  elementID.send_keys(password)
  </code></pre>
  <p>However, I have this error message</p>
  <pre><code>Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;input[automation-id='login-sts-username-input']&quot;}
    (Session info: headless chrome=91.0.4472.77)
  </code></pre>
  <p>I have tried to change and use find_element_by_class, by_xpath, etc but I couldn't find how to do it.</p>
  <p>Could you give me a hand here?</p>