title: Selenium function By.CLASS_NAME not working each time?
body: <p>Here is the code i use</p>
  <pre class="lang-py prettyprint-override"><code>import os
  import uuid
  import time
  from selenium.webdriver import *
  from selenium.webdriver.common.by import By
  from selenium.webdriver.firefox.options import Options
  from selenium.webdriver.firefox.service import Service
  from selenium.webdriver.common.keys import Keys
  
  #########################################################################################################################################################################
  # Mettre ici la requeste qui commence le scrapping
  channel = &quot;https://www.youtube.com/c/TsodingDaily/videos&quot;
  # Headless : True or False
  headless = False
  #########################################################################################################################################################################
  
  # Parametre du navigateur
  Options = Options()
  if headless : Options.add_argument(&quot;--headless&quot;)
  #s = Service(&quot;drivers\\geckodriver.exe&quot;,0,None,&quot;drivers\\geckodriver.log&quot;)
  #driver = Firefox(service=s, options=Options)
  driver = Firefox(options=Options)
  
  driver.get(channel)
  driver.find_element(By.XPATH, &quot;/html/body/c-wiz/div/div/div/div[2]/div[1]/div[4]/form/div/div/button/span&quot;).click()
  #l = driver.find_elements(By.CLASS_NAME, &quot;style-scope ytd-grid-video-renderer&quot;)
  l = driver.find_elements(By.CLASS_NAME, &quot;yt-simple-endpoint inline-block style-scope ytd-thumbnail&quot;)
  print(l)
  </code></pre>
  <p>I dont understand why when i use the class name &quot;yt-simple-endpoint inline-block style-scope ytd-thumbnail&quot; i get nothing but the same code is working with &quot;style-scope ytd-grid-video-renderer&quot;</p>
  <p>can you help me ?</p>