title: how to import selenium WebElement in python
body: <p>I want to import selenium <code>WebElement</code> since I need to check if a function returns a <code>WebElement</code> or not</p>
  
  <p>I have googled but only find how to import selenium, such as <code>from selenium import webdriver</code>, I already have that working. The error part is the type checking line such as:</p>
  
  <pre><code>if isinstance(var, WebElement):
      #do something
  else:
      #do nothing
  </code></pre>
  
  <p>so the question is what is the class path for selenium's <code>WebElement</code>? for example <code>from selenium.common import WebElement</code> (already tried this and not working)</p>