grafana/k6 · info
parsing input value options: %w
Error message
parsing input value options: %w
What it means
Options passed to frame.inputValue(selector, opts) failed to parse (frame_mapping.go:248). FrameInputValueOptions uses FrameBaseOptions whose Parse always returns nil in this codebase - defensive and effectively unreachable in the current version.
Source
Thrown at internal/js/modules/k6/browser/browser/frame_mapping.go:248
return nil, fmt.Errorf("parsing inner HTML options: %w", err)
}
return promise(vu, func() (any, error) {
return f.InnerHTML(selector, popts) //nolint:wrapcheck
}), nil
},
"innerText": func(selector string, opts sobek.Value) (*sobek.Promise, error) {
popts := common.NewFrameInnerTextOptions(f.Timeout())
if err := popts.Parse(vu.Context(), opts); err != nil {
return nil, fmt.Errorf("parsing inner text options: %w", err)
}
return promise(vu, func() (any, error) {
return f.InnerText(selector, popts) //nolint:wrapcheck
}), nil
},
"inputValue": func(selector string, opts sobek.Value) (*sobek.Promise, error) {
popts := common.NewFrameInputValueOptions(f.Timeout())
if err := popts.Parse(vu.Context(), opts); err != nil {
return nil, fmt.Errorf("parsing input value options: %w", err)
}
return promise(vu, func() (any, error) {
return f.InputValue(selector, popts) //nolint:wrapcheck
}), nil
},
"isChecked": func(selector string, opts sobek.Value) (*sobek.Promise, error) {
popts := common.NewFrameIsCheckedOptions(f.Timeout())
if err := popts.Parse(vu.Context(), opts); err != nil {
return nil, fmt.Errorf("parsing isChecked options of selector %q: %w", selector, err)
}
return promise(vu, func() (any, error) {
return f.IsChecked(selector, popts) //nolint:wrapcheck
}), nil
},
"isDetached": f.IsDetached,
"isDisabled": func(selector string, opts sobek.Value) (*sobek.Promise, error) {
popts := common.NewFrameIsDisabledOptions(f.Timeout())
if err := popts.Parse(vu.Context(), opts); err != nil {View on GitHub (pinned to 93accf6570)
Solutions
- Pass only { timeout, strict }
- Report to k6 if reproducible on a stock build
Defensive patterns
Strategy: try-catch
Validate before calling
const safeOpts = { timeout: Number(opts?.timeout) || undefined, strict: !!opts?.strict }; Try / catch
try {
const v = await frame.inputValue(sel, safeOpts);
} catch (e) {
console.error(`inputValue(${sel}) failed: ${e.message}`);
} Prevention
- Use only timeout/strict
- Treat this message on stock k6 as an upstream defect to report
When it happens
Trigger: No inputValue option value can trigger it today; 'strict' and 'timeout' are coerced, never rejected.
Common situations: Not observed on stock k6; only relevant to custom builds or parser changes.
Related errors
- parsing new frame check options: %w
- parsing double click options: %w
- parsing frame dispatch event options: %w
- parsing fill options: %w
- parsing focus options: %w
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/a9fcf17fcf2adf29.
Report an issue: GitHub.