title: Why do I get a deprecationWarning: Selenium Tools for Microsoft Edge is deprecated. Please upgrade to Selenium 4?
body: <p>I have the following selenium code:</p>
  <pre><code>from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from msedge.selenium_tools import EdgeOptions
  from msedge.selenium_tools import Edge
  from selenium.webdriver.support import expected_conditions as EC
  import os
  
  options= EdgeOptions()
  options.use_chromium=True
  options.add_argument(&quot;headless&quot;)
  options.add_argument(&quot;disable-gpu&quot;)
  
  driver=Edge(executable_path=r'C:\Users\A\Desktop\Automated\msedgedriver.exe', options=options)
  
  params={'behavior':'allow','downloadPath':os.getcwd()}
  driver.execute_cdp_cmd('Page.setDownloadBehavior',params)
  
  driver.get(&quot;https://www.ons.gov.uk/peoplepopulationandcommunity/healthandsocialcare/healthandwellbeing/datasets/worriesaboutreturntoschoolorcollege&quot;)
  
  WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, &quot;/html/body/main/div[3]/div/div[1]/section[2]/div/div[2]/div/div/a&quot;))).click()
  </code></pre>
  <p>When I run the code, I get the following warning:</p>
  <pre><code>DeprecationWarning: Selenium Tools for Microsoft Edge is deprecated. Please upgrade to Selenium 4 which has built-in support for Microsoft Edge (Chromium): https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/#upgrading-from-selenium-3
  </code></pre>
  <p>How can I adjust the code so that the warning does not appear?</p>