code: public function read($condition, $text, $selector = '')
      {
          $condition = (bool) $condition;
          $wysiwyg = $this->getEditor();
          $content = $wysiwyg->read($selector);
  
          if (!is_string($content)) {
              self::debug(['Returned value:', '%s'], [var_export($content, true)]);
  
              throw new \UnexpectedValueException('Could not read WYSIWYG content.');
          }
  
          self::debug(["Content from WYSIWYG: %s"], [$content]);
  
          if (strpos($content, $text) === $condition) {
              throw new \RuntimeException(sprintf(
                  'The text "%s" was %s found in the "%s" WYSIWYG editor.',
                  $text,
                  $condition ? '' : 'not',
                  $wysiwyg->getSelector()
              ));
          }
      }
docs: @param string $condition
  @param string $text
  @param string $selector
  
  @throws \Exception
  When editor was not found.
  @throws \RuntimeException
  
  @Then /^(?:|I )should(| not) see "([^"]*)" in (?:|"([^"]*)" )WYSIWYG editor$/