Documentation ¶
Index ¶
- func Int(number int) *int
- func IntValue(number *int) int
- func String(str string) *string
- func StringSlice(slice []string) []*string
- func StringValue(str *string) string
- func StringValueSlice(slice []*string) []string
- type Chrome
- type ClientHook
- type ClientHooks
- type LaunchOpts
- type ScreenshotOpts
- type Tab
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringSlice ¶
StringSlice returns slice of string pointers for given slice of string
func StringValue ¶
StringValue returns the value of the string pointer passed in or "" if the pointer is nil
func StringValueSlice ¶
StringValueSlice returns slice of string values for given slice of string pointer. "" is returned if any pointer in the slice is nil
Types ¶
type Chrome ¶
type ClientHook ¶
type ClientHooks ¶
type ClientHooks []ClientHook
type LaunchOpts ¶
type LaunchOpts struct {
// contains filtered or unexported fields
}
func NewLaunchOpts ¶
func NewLaunchOpts() *LaunchOpts
func (*LaunchOpts) SetArguments ¶
func (l *LaunchOpts) SetArguments(arguments ...string)
func (*LaunchOpts) SetHeadless ¶
func (l *LaunchOpts) SetHeadless(headless bool)
func (*LaunchOpts) SetPath ¶
func (l *LaunchOpts) SetPath(path string)
func (*LaunchOpts) SetPort ¶
func (l *LaunchOpts) SetPort(port int)
type ScreenshotOpts ¶
type Tab ¶
type Tab interface { GetHTML(timeout time.Duration) (string, error) CaptureScreenshot(opts ScreenshotOpts, timeout time.Duration) (string, error) Exec(javascript string, timeout time.Duration) (*runtime.EvaluateReply, error) GetClient() *cdp.Client GetTargetID() target.ID AttachHook(hook ClientHook) }
Click to show internal directories.
Click to hide internal directories.