grafana/k6 · error

checking is %q disabled: %w

Error message

checking is %q disabled: %w

What it means

Error "checking is %q disabled: %w" thrown in grafana/k6.

Source

Thrown at internal/js/modules/k6/browser/common/locator.go:255

	opts.Strict = true
	enabled, err := l.frame.isEnabled(l.selector, opts)
	if err != nil {
		return false, fmt.Errorf("checking is %q enabled: %w", l.selector, err)
	}

	return enabled, nil
}

// IsDisabled returns true if the element matches the locator's
// selector and is disabled. Otherwise, returns false.
func (l *Locator) IsDisabled(opts *FrameIsDisabledOptions) (bool, error) {
	l.log.Debugf("Locator:IsDisabled", "fid:%s furl:%q sel:%q opts:%+v", l.frame.ID(), l.frame.URL(), l.selector, opts)

	opts.Strict = true
	disabled, err := l.frame.isDisabled(l.selector, opts)
	if err != nil {
		return false, fmt.Errorf("checking is %q disabled: %w", l.selector, err)
	}

	return disabled, nil
}

// IsInViewport returns true if the element matches the locator's selector and
// intersects the viewport by at least the requested ratio. Otherwise, returns
// false.
func (l *Locator) IsInViewport(opts *FrameIsInViewportOptions) (bool, error) {
	l.log.Debugf("Locator:IsInViewport", "fid:%s furl:%q sel:%q opts:%+v", l.frame.ID(), l.frame.URL(), l.selector, opts)

	opts.Strict = true
	inViewport, err := l.frame.isInViewport(l.selector, opts)
	if err != nil {
		return false, fmt.Errorf("checking is %q in viewport: %w", l.selector, err)
	}

	return inViewport, nil

View on GitHub (pinned to 93accf6570)

When it happens

Trigger: Thrown at internal/js/modules/k6/browser/common/locator.go:255 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15). Data as JSON: /api/errors/60a98c43562625e4. Report an issue: GitHub.