title: Selenium find element error, but same code with js can work
body: <p>use the python execute can find the element bottom and click, it works:</p>
  <pre><code>driver.execute_script(&quot;document.getElementsByClassName(\&quot;g-c-R  webstore-test-button-label\&quot;)[0].click()&quot;)
  </code></pre>
  <p>but with the similar code, the python code can not work:</p>
  <pre><code>element_install_bottom=driver.find_element(by=By.ID, value=r'g-c-R  webstore-test-button-label')
  </code></pre>
  <p>and throw the exception:</p>
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;[id=&quot;g-c-R  webstore-test-button-label&quot;]&quot;}
  </code></pre>
  <p>and have try by.ID, by.ClassName; but always throw the exception.</p>
  <p>the whole code as below:
  from selenium import webdriver
  from selenium.webdriver.common.by import By
  import selenium.webdriver.support.ui as ui</p>
  <pre><code>import time
  
  option = webdriver.ChromeOptions()
  
  USER_DATA_PATH = r&quot;D:\Chrome\User Data 3&quot;
  option.add_argument(f'--user-data-dir={USER_DATA_PATH}')
  option.add_experimental_option('excludeSwitches', ['enable-automation'])
  
  print(option.arguments)
  
  
  driver = webdriver.Chrome(options=option)
  
  extension_url = &quot;https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh?hl=zh-CN&quot;
  driver.get(extension_url)
  time.sleep(60)
  
  
  element_install_bottom=driver.find_element(by=By.ID, value=r'g-c-R  webstore-test-button-label')
  print(element_install_bottom)
  </code></pre>