title: Method is_displayed() gets an error before returning an output in Selenium
body: <p>I'm using Selenium in Python.</p>
  <p>In my script, I wrote this line to check if a particular element exists:</p>
  <pre><code>doesElementExist = driver.find_element(By.CSS_SELECTOR,'div.MediaThumbnail.Media--playButton&gt;img').is_displayed()
  print(doesElementExist)
  </code></pre>
  <p>For testing, I ran the script with a website in which I know this element do not exist. Therefore, I'm expecting a False as the returning output since the is_displayed() method returns a boolean.</p>
  <p>However, I got an error saying this element do not exist, which stops the script from running instead of returning a false and keep the script going.</p>
  <pre><code>Traceback (most recent call last):
  
    File ~/Desktop/ImageScraping/birdsScrapeTest.py:70 in &lt;module&gt;
      if driver.find_element(By.CSS_SELECTOR,'div.MediaThumbnail.Media--playButton&gt;img').is_displayed() == True:
  
    File /opt/anaconda3/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:1251 in find_element
      return self.execute(Command.FIND_ELEMENT, {
  
    File /opt/anaconda3/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:430 in execute
      self.error_handler.check_response(response)
  
    File /opt/anaconda3/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py:247 in check_response
      raise exception_class(message, screen, stacktrace)
  
  NoSuchElementException: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;div.MediaThumbnail.Media--playButton&gt;img&quot;}
  
  </code></pre>
  <p>Any idea why that happens?</p>