title: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead using Selenium in Google Colab
body: <p>There are a few functions that work with selenium and these functions have certain outputs, but when I open them in google colab, I get a few outputs that I don't want, it reduces the understanding.</p>
  <pre><code>BETSWITSBOT
  
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:4: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    after removing the cwd from sys.path.
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:5: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    &quot;&quot;&quot;
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:6: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:7: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    import sys
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:8: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:9: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    if __name__ == '__main__':
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:10: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    # Remove the CWD from sys.path while we load stuff.
  /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:11: DeprecationWarning: find_elements_by_* commands are deprecated. Please use find_elements() instead
    # This is added back by InteractiveShellApp.init_path()
  Hatayspor
  Feyenoord
  Nice
  Aris
  Antalyaspor
  PSV
  Arsenal
  </code></pre>
  <p>Is there a way to not get the output between 'BETSWITHBOT' and 'HATAYSPOR' in the example?</p>
  <p>My code :</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as ec
  from selenium.webdriver.support.ui import WebDriverWait
  chrome_options = webdriver.ChromeOptions()
  chrome_options.add_argument('--headless')
  chrome_options.add_argument('--no-sandbox')
  chrome_options.add_argument('--disable-dev-shm-usage')
  driver = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
  
  def betswitsbot():
      print(&quot;BETSWITSBOT\n&quot;)
      driver.get(&quot;https://www.betswithbots.com/&quot;)
      takimlar = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[3]&quot;)
      evTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[4]&quot;)
      xTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[5]&quot;)
      depTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[6]&quot;)
      altTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[7]&quot;)
      ustTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[8]&quot;)
      ngTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[9]&quot;)
      gTahmin = driver.find_elements_by_xpath(&quot;//table[@id='predictions_table']/tbody/tr/td[10]&quot;)
  
      for x in range(0,len(takimlar)):
          try:
              ev, dep = takimlar[x].text.split(&quot; - &quot;)
              #print(ev, evTahmin[x].text, xTahmin[x].text, depTahmin[x].text, dep, altTahmin[x].text, ustTahmin[x].text, ngTahmin[x].text, gTahmin[x].text, sep=&quot;\t&quot;)
              if float(evTahmin[x].text) &gt; 50:
                  print(ev)
              elif float(depTahmin[x].text) &gt; 50:
                  print(dep)
          except:
              a=0
  
  betswitsbot()
  </code></pre>