Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WindowPosition ¶
func WindowPosition(x, y int) chromedp.ExecAllocatorOption
WindowPosition 指定初始窗口位置:-窗口位置=x,y
func WindowSize ¶
func WindowSize(width, height int) chromedp.ExecAllocatorOption
WindowSize 设置初始窗口大小: 800,600
Types ¶
type Option ¶
type Option func(c *Config)
Option config option
func WithContextOptions ¶
func WithContextOptions(opts ...chromedp.ContextOption) Option
WithContextOptions with some context options.
func WithExecAllocatorFlags ¶
func WithExecAllocatorFlags(flags ...chromedp.ExecAllocatorOption) Option
WithExecAllocatorFlags with some exec allocator options.
Click to show internal directories.
Click to hide internal directories.