{"record":{"id":"e428305573ab030d","repo":"grafana/k6","slug":"getting-input-value-of-q-w","errorCode":null,"errorMessage":"getting input value of %q: %w","messagePattern":"getting input value of %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame.go","lineNumber":1365,"sourceCode":"\t}\n\tif v == nil {\n\t\treturn \"\", nil\n\t}\n\tgv, ok := v.(string)\n\tif !ok {\n\t\treturn \"\", fmt.Errorf(\"unexpected type %T\", v)\n\t}\n\n\treturn gv, nil\n}\n\n// InputValue returns the input value of the first element found that matches the selector.\nfunc (f *Frame) InputValue(selector string, popts *FrameInputValueOptions) (string, error) {\n\tf.log.Debugf(\"Frame:InputValue\", \"fid:%s furl:%q sel:%q\", f.ID(), f.URL(), selector)\n\n\tv, err := f.inputValue(selector, popts)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"getting input value of %q: %w\", selector, err)\n\t}\n\n\treturn v, nil\n}\n\nfunc (f *Frame) inputValue(selector string, opts *FrameInputValueOptions) (string, error) {\n\tinputValue := func(apiCtx context.Context, handle *ElementHandle) (any, error) {\n\t\treturn handle.inputValue(apiCtx)\n\t}\n\tact := f.newAction(\n\t\tselector, DOMElementStateAttached, opts.Strict, inputValue,\n\t\t[]string{}, false, withRetry, true, opts.Timeout,\n\t)\n\tv, err := call(f.ctx, act, opts.Timeout)\n\tif err != nil {\n\t\treturn \"\", errorFromDOMError(err)\n\t}\n\ts, ok := v.(string)","sourceCodeStart":1347,"sourceCodeEnd":1383,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/frame.go#L1347-L1383","documentation":"Error \"getting input value of %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1365 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}