{"record":{"id":"70dfc6e674e7acdf","repo":"grafana/k6","slug":"filling-q-with-q-w-70dfc6","errorCode":null,"errorMessage":"filling %q with %q: %w","messagePattern":"filling %q with %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":311,"sourceCode":"\n\thidden, err := l.frame.isHidden(l.selector, &FrameIsHiddenOptions{Strict: true})\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q hidden: %w\", l.selector, err)\n\t}\n\n\treturn hidden, nil\n}\n\n// Fill out the element using locator's selector with strict mode on.\nfunc (l *Locator) Fill(value string, opts *FrameFillOptions) error {\n\tl.log.Debugf(\n\t\t\"Locator:Fill\", \"fid:%s furl:%q sel:%q val:%q opts:%+v\",\n\t\tl.frame.ID(), l.frame.URL(), l.selector, value, opts,\n\t)\n\n\topts.Strict = true\n\tif err := l.frame.fill(l.selector, value, opts); err != nil {\n\t\treturn fmt.Errorf(\"filling %q with %q: %w\", l.selector, value, err)\n\t}\n\n\tapplySlowMo(l.ctx)\n\n\treturn nil\n}\n\n// LocatorFilterOptions allows filtering a [Locator] by various criteria.\n// It's similar to [LocatorOptions] but used for filtering existing locators.\ntype LocatorFilterOptions struct {\n\t*LocatorOptions\n}\n\n// Filter returns a new [Locator] after applying the options to the current one.\nfunc (l *Locator) Filter(opts *LocatorFilterOptions) *Locator {\n\treturn NewLocator(l.ctx, opts.LocatorOptions, l.selector, l.frame, l.log)\n}\n","sourceCodeStart":293,"sourceCodeEnd":329,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/locator.go#L293-L329","documentation":"Error \"filling %q with %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:311 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"}