package extractor import "time" // mockDocument implements the Document interface for testing without Playwright. type mockDocument struct { mockNode url string content string } func (m mockDocument) URL() string { return m.url } func (m mockDocument) Refresh() error { return nil } func (m mockDocument) Content() (string, error) { return m.content, nil } func (m mockDocument) Close() error { return nil } func (m mockDocument) WaitForNetworkIdle(_ *time.Duration) error { return nil }