code: def active_element(self):
          
          if self._driver.w3c:
              return self._driver.execute(Command.W3C_GET_ACTIVE_ELEMENT)['value']
          else:
              return self._driver.execute(Command.GET_ACTIVE_ELEMENT)['value']
docs: Returns the element with focus, or BODY if nothing has focus.
  
          :Usage:
              ::
  
                  element = driver.switch_to.active_element