grafana/k6 · error

double clicking on %q: %w

Error message

double clicking on %q: %w

What it means

Error "double clicking on %q: %w" thrown in grafana/k6.

Source

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

func (l *Locator) ContentFrame() *FrameLocator {
	return NewFrameLocator(l.ctx, l.selector, l.frame, l.log)
}

// Count APIs do not wait for the element to be present. It also does not set
// strict to true, allowing it to return the total number of elements matching
// the selector.
func (l *Locator) Count() (int, error) {
	return l.frame.count(l.selector)
}

// Dblclick double clicks on an element using locator's selector with strict mode on.
func (l *Locator) Dblclick(opts *FrameDblclickOptions) error {
	l.log.Debugf("Locator:Dblclick", "fid:%s furl:%q sel:%q opts:%+v", l.frame.ID(), l.frame.URL(), l.selector, opts)

	opts.Strict = true
	opts.retry = true
	if err := l.frame.dblclick(l.selector, opts); err != nil {
		return fmt.Errorf("double clicking on %q: %w", l.selector, err)
	}

	applySlowMo(l.ctx)

	return nil
}

func (l *Locator) Evaluate(pageFunc string, args ...any) (any, error) {
	return l.frame.evaluateWithSelector(l.selector, pageFunc, args...)
}

func (l *Locator) EvaluateHandle(pageFunc string, args ...any) (JSHandleAPI, error) {
	return l.frame.evaluateHandleWithSelector(l.selector, pageFunc, args...)
}

// SetChecked sets the checked state of the element using locator's selector
// with strict mode on.
func (l *Locator) SetChecked(checked bool, opts *FrameCheckOptions) error {

View on GitHub (pinned to 93accf6570)

When it happens

Trigger: Thrown at internal/js/modules/k6/browser/common/locator.go:140 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/af8f481b877b8726. Report an issue: GitHub.