diff --git a/internal/driver/chrome/driver.go b/internal/driver/chrome/driver.go index 0224d19..a6dc32c 100644 --- a/internal/driver/chrome/driver.go +++ b/internal/driver/chrome/driver.go @@ -394,12 +394,3 @@ func (d *Driver) NextActionFromV8(_ context.Context) (json.RawMessage, error) { } return json.RawMessage(encoded), nil } - -// Document returns the current page's outer HTML for trace capture. -func (d *Driver) Document(_ context.Context) (string, error) { - var html string - if err := chromedp.Run(d.tabCtx, chromedp.OuterHTML("html", &html, chromedp.ByQuery)); err != nil { - return "", fmt.Errorf("document: %w", err) - } - return html, nil -} diff --git a/internal/driver/driver.go b/internal/driver/driver.go index 102eb2f..ef5d589 100644 --- a/internal/driver/driver.go +++ b/internal/driver/driver.go @@ -82,6 +82,4 @@ type WebDriver interface { // bundle and returns the resulting Action JSON for the host to // dispatch. The shape mirrors verifier.Action's JSON form. NextActionFromV8(ctx context.Context) (json.RawMessage, error) - // Document returns the current page outerHTML for trace capture. - Document(ctx context.Context) (string, error) }