docs: def filter(self, displayed=False, enabled=False):
          """
          Filter elements by visibility and enabled status.
  
          :param displayed: whether to filter out invisible elements
          :param enabled: whether to filter out disabled elements
  
          Returns: an :class:`ElementSelector`
          """
  
          if self.evaluated:
              # Filter elements one by one
              result = self
  
              if displayed:
                  result = ElementSelector(
                      result.browser,
                      elements=[e for e in result if e.is_displayed()]
                  )
  
              if enabled:
                  result = ElementSelector(
                      result.browser,
                      elements=[e for e in result if e.is_enabled()]
                  )
  
          else:
              result = copy(self)
              if displayed:
                  result.displayed = True
              if enabled:
                  result.enabled = True
  
          return result