title: syntax for find element by css selector in selenium
body: <p>my code</p>
  <pre><code>driver.find_element(By.cssSelector(&quot;button[type='submit']&quot;)).click()
  driver.quit()
  </code></pre>
  <p>after running
  error</p>
  <blockquote>
  <blockquote>
  <p>C:\Users\amalp\OneDrive\Desktop\pico.py:7: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  driver=webdriver.Chrome(path)
  Traceback (most recent call last):
  File &quot;C:\Users\amalp\OneDrive\Desktop\pico.py&quot;, line 11, in 
  driver.find_element(By.cssSelector(&quot;button[type='submit']&quot;)).click()
  AttributeError: type object 'By' has no attribute 'cssSelector'</p>
  </blockquote>
  </blockquote>