{"record":{"id":"09157f85bd90ea31","repo":"grafana/k6","slug":"getting-inner-html-of-q-w","errorCode":null,"errorMessage":"getting inner HTML of %q: %w","messagePattern":"getting inner HTML of %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame.go","lineNumber":1294,"sourceCode":"\t}\n\tact := f.newPointerAction(\n\t\tselector, DOMElementStateAttached, opts.Strict, hover, &opts.ElementHandleBasePointerOptions,\n\t)\n\tif _, err := call(f.ctx, act, opts.Timeout); err != nil {\n\t\treturn errorFromDOMError(err)\n\t}\n\n\treturn nil\n}\n\n// InnerHTML returns the innerHTML attribute of the first element found\n// that matches the selector.\nfunc (f *Frame) InnerHTML(selector string, popts *FrameInnerHTMLOptions) (string, error) {\n\tf.log.Debugf(\"Frame:InnerHTML\", \"fid:%s furl:%q sel:%q\", f.ID(), f.URL(), selector)\n\n\tv, err := f.innerHTML(selector, popts)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"getting inner HTML of %q: %w\", selector, err)\n\t}\n\n\treturn v, nil\n}\n\nfunc (f *Frame) innerHTML(selector string, opts *FrameInnerHTMLOptions) (string, error) {\n\tinnerHTML := func(apiCtx context.Context, handle *ElementHandle) (any, error) {\n\t\treturn handle.innerHTML(apiCtx)\n\t}\n\tact := f.newAction(\n\t\tselector, DOMElementStateAttached, opts.Strict, innerHTML,\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\tif v == nil {","sourceCodeStart":1276,"sourceCodeEnd":1312,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/frame.go#L1276-L1312","documentation":"Error \"getting inner HTML of %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1294 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"}