Documentation
¶
Index ¶
- func NewPageCaptureReport(url string) *pagecapturefern.PageCaptureHtmlReport
- func NewPageScreenshotReport(url string) *pagecapturefern.PageCaptureScreenshotReport
- type BrowserPageCapturer
- func (b *BrowserPageCapturer) Capture(ctx context.Context, url string, options *Options) (*pagecapturefern.PageCaptureHtmlReport, error)
- func (b *BrowserPageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) *pagecapturefern.PageCaptureScreenshotReport
- func (b *BrowserPageCapturer) Close(ctx context.Context) error
- func (b *BrowserPageCapturer) InitializeBrowser()
- type BrowserbasePageCapturer
- func (b *BrowserbasePageCapturer) Capture(ctx context.Context, url string, options *Options) (*pagecapturefern.PageCaptureHtmlReport, error)
- func (b *BrowserbasePageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) *pagecapturefern.PageCaptureScreenshotReport
- func (b *BrowserbasePageCapturer) Close(ctx context.Context) error
- type Options
- type RequestPageCapturer
- type WebSocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPageCaptureReport ¶
func NewPageCaptureReport(url string) *pagecapturefern.PageCaptureHtmlReport
func NewPageScreenshotReport ¶
func NewPageScreenshotReport(url string) *pagecapturefern.PageCaptureScreenshotReport
Types ¶
type BrowserPageCapturer ¶
type BrowserPageCapturer struct { PathToBrowser *string Browser *rod.Browser TimeoutSeconds int MinDOMStabalizeTimeSeconds int }
func NewBrowserPageCapturer ¶
func NewBrowserPageCapturer(pathToBrowser *string, timeout int, minDOMStabalizeTime int) *BrowserPageCapturer
func NewBrowserPageCapturerWithClient ¶
func NewBrowserPageCapturerWithClient(client *cdp.Client, timeout int, minDOMStabalizeTime int) *BrowserPageCapturer
func (*BrowserPageCapturer) Capture ¶
func (b *BrowserPageCapturer) Capture(ctx context.Context, url string, options *Options) (*pagecapturefern.PageCaptureHtmlReport, error)
func (*BrowserPageCapturer) CaptureScreenshot ¶
func (b *BrowserPageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) *pagecapturefern.PageCaptureScreenshotReport
func (*BrowserPageCapturer) InitializeBrowser ¶
func (b *BrowserPageCapturer) InitializeBrowser()
type BrowserbasePageCapturer ¶
type BrowserbasePageCapturer struct { Client *browserbase.Client Capturer *BrowserPageCapturer }
func NewBrowserbasePageCapturer ¶
func NewBrowserbasePageCapturer( ctx context.Context, timeout int, minDOMStabalizeTime int, browserbaseClient *browserbase.Client, ) *BrowserbasePageCapturer
func (*BrowserbasePageCapturer) Capture ¶
func (b *BrowserbasePageCapturer) Capture(ctx context.Context, url string, options *Options) (*pagecapturefern.PageCaptureHtmlReport, error)
func (*BrowserbasePageCapturer) CaptureScreenshot ¶
func (b *BrowserbasePageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) *pagecapturefern.PageCaptureScreenshotReport
type RequestPageCapturer ¶
func NewRequestPageCapturer ¶
func NewRequestPageCapturer(insecure bool, timeout int) *RequestPageCapturer
func (*RequestPageCapturer) Capture ¶
func (r *RequestPageCapturer) Capture(ctx context.Context, url string, options *Options) (*pagecapturefern.PageCaptureHtmlReport, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.