{"record":{"id":"6b5bdb1ab2adfc2c","repo":"grafana/k6","slug":"parsing-select-option-options-w","errorCode":null,"errorMessage":"parsing select option options: %w","messagePattern":"parsing select option options: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/browser/frame_mapping.go","lineNumber":335,"sourceCode":"\t\t\"page\": func() mapping {\n\t\t\treturn mapPage(vu, f.Page())\n\t\t},\n\t\t\"parentFrame\": func() mapping {\n\t\t\treturn mapFrame(vu, f.ParentFrame())\n\t\t},\n\t\t\"press\": func(selector, key string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFramePressOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parse press options of selector %q on key %q: %w\", selector, key, err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn nil, f.Press(selector, key, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"selectOption\": func(selector string, values sobek.Value, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameSelectOptionOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing select option options: %w\", err)\n\t\t\t}\n\n\t\t\tconvValues, err := ConvertSelectOptionValues(rt, values)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing select options values: %w\", err)\n\t\t\t}\n\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn f.SelectOption(selector, convValues, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"setChecked\": func(selector string, checked bool, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameCheckOptions(f.Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing frame set check options: %w\", err)\n\t\t\t}\n\n\t\t\treturn promise(vu, func() (any, error) {","sourceCodeStart":317,"sourceCodeEnd":353,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/browser/frame_mapping.go#L317-L353","documentation":"Error \"parsing select option options: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/browser/frame_mapping.go:335 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"}