Documentation ¶
Index ¶
Constants ¶
View Source
const Slogan = `Your friendly friend in web browser automation.`
View Source
const Version = `0.12.0`
Variables ¶
View Source
var MaxReaderWait = time.Duration(5) * time.Second
Functions ¶
This section is empty.
Types ¶
type CallDocSet ¶ added in v0.9.29
type CallDocSet []*CallDoc
type DocItem ¶
type DocItem struct { Name string `json:"name,omitempty"` Type string `json:"types"` Required bool `json:"required,omitempty"` Description string `json:"description,omitempty"` DefaultValue interface{} `json:"default,omitempty"` Examples []string `json:"examples,omitempty"` Parameters []*DocItem `json:"parameters,omitempty"` }
type Environment ¶
type Environment struct { *friendscript.Environment Cookies *cookies.Commands Core *core.Commands Page *page.Commands File *file.Commands // contains filtered or unexported fields }
func NewEnvironment ¶
func NewEnvironment(b *browser.Browser) *Environment
func (*Environment) Browser ¶
func (self *Environment) Browser() *browser.Browser
func (*Environment) Documentation ¶
func (self *Environment) Documentation() []*ModuleDoc
func (*Environment) MustModule ¶ added in v0.9.33
func (self *Environment) MustModule(name string) friendscript.Module
type ModuleDoc ¶
type ModuleDoc struct { DisplayName string `json:"display_name"` Name string `json:"name"` Summary string `json:"summary,omitempty"` Description string `json:"description,omitempty"` Commands CallDocSet `json:"commands"` // contains filtered or unexported fields }
func (*ModuleDoc) AddCommand ¶ added in v0.9.29
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
commands
|
|
cookies
Commands for interacting with the browser's cookie storage backend.
|
Commands for interacting with the browser's cookie storage backend. |
core
Commonly used commands for basic browser interaction.
|
Commonly used commands for basic browser interaction. |
page
Commands for inspecting and manipulating the current DOM document and browser viewport.
|
Commands for inspecting and manipulating the current DOM document and browser viewport. |
Click to show internal directories.
Click to hide internal directories.