{"record":{"id":"17ee0b2b71e177ed","repo":"grafana/k6","slug":"parsing-type-options-w-17ee0b","errorCode":null,"errorMessage":"parsing type options: %w","messagePattern":"parsing type options: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/browser/page_mapping.go","lineNumber":553,"sourceCode":"\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn nil, p.ThrottleCPU(cpuProfile) //nolint:wrapcheck\n\t\t\t})\n\t\t},\n\t\t\"throttleNetwork\": func(networkProfile common.NetworkProfile) *sobek.Promise {\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn nil, p.ThrottleNetwork(networkProfile) //nolint:wrapcheck\n\t\t\t})\n\t\t},\n\t\t\"title\": func() *sobek.Promise {\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn p.Title() //nolint:wrapcheck\n\t\t\t})\n\t\t},\n\t\t\"touchscreen\": mapTouchscreen(vu, p.GetTouchscreen()),\n\t\t\"type\": func(selector string, text string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameTypeOptions(p.MainFrame().Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing type options: %w\", err)\n\t\t\t}\n\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn nil, p.Type(selector, text, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"uncheck\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts := common.NewFrameUncheckOptions(p.MainFrame().Timeout())\n\t\t\tif err := popts.Parse(vu.Context(), opts); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing frame uncheck options %q: %w\", selector, err)\n\t\t\t}\n\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn nil, p.Uncheck(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"unroute\": func(url string) (*sobek.Promise, error) {\n\t\t\treturn promise(vu, func() (any, error) {","sourceCodeStart":535,"sourceCodeEnd":571,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/browser/page_mapping.go#L535-L571","documentation":"Error \"parsing type options: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/browser/page_mapping.go:553 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"}