{"record":{"id":"a9fcf17fcf2adf29","repo":"grafana/k6","slug":"parsing-input-value-options-w","errorCode":null,"errorMessage":"parsing input value options: %w","messagePattern":"parsing input value options: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"info","filePath":"internal/js/modules/k6/browser/browser/frame_mapping.go","lineNumber":248,"sourceCode":"\t\t\t\treturn nil, fmt.Errorf(\"parsing inner HTML options: %w\", err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn f.InnerHTML(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"innerText\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameInnerTextOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing inner text options: %w\", err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn f.InnerText(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"inputValue\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameInputValueOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing input value options: %w\", err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn f.InputValue(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"isChecked\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameIsCheckedOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing isChecked options of selector %q: %w\", selector, err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn f.IsChecked(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"isDetached\": f.IsDetached,\n\t\t\"isDisabled\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameIsDisabledOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {","sourceCodeStart":230,"sourceCodeEnd":266,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/browser/frame_mapping.go#L230-L266","documentation":"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.","triggerScenarios":"No inputValue option value can trigger it today; 'strict' and 'timeout' are coerced, never rejected.","commonSituations":"Not observed on stock k6; only relevant to custom builds or parser changes.","solutions":["Pass only { timeout, strict }","Report to k6 if reproducible on a stock build"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"const safeOpts = { timeout: Number(opts?.timeout) || undefined, strict: !!opts?.strict };","typeGuard":null,"tryCatchPattern":"try {\n  const v = await frame.inputValue(sel, safeOpts);\n} catch (e) {\n  console.error(`inputValue(${sel}) failed: ${e.message}`);\n}","preventionTips":["Use only timeout/strict","Treat this message on stock k6 as an upstream defect to report"],"tags":["k6","browser","frame","options-parsing","inputvalue"],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}