func HaveLoggedError(messages ...string) types.GomegaMatcher {
	return &internal.LogMatcher{
		ExpectedMessages: messages,
		Levels:           []string{"WARNING", "SEVERE"},
		Name:             "error",
		Type:             "browser",
	}
}
func HaveLoggedError(messages ...string) types.GomegaMatcher {
	return &internal.LogMatcher{
		ExpectedMessages: messages,
		Levels:           []string{"WARNING", "SEVERE"},
		Name:             "error",
		Type:             "browser",
	}
}
// HaveLoggedError passes when all of the expected log messages are logged as
// errors in the browser console. If no message is provided, this matcher will
// pass if any error message has been logged. When negated, this matcher will
// only fail if all of the provided messages are logged.