Documentation ¶
Index ¶
Constants ¶
View Source
const Slogan = `Your friendly friend in web browser automation.`
View Source
const Version = `0.10.4`
Variables ¶
View Source
var MaxReaderWait = time.Duration(5) * time.Second
Functions ¶
This section is empty.
Types ¶
type CallDocSet ¶
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(browser *browser.Browser) *Environment
func (*Environment) Browser ¶
func (self *Environment) Browser() *browser.Browser
func (*Environment) Documentation ¶
func (self *Environment) Documentation() []*ModuleDoc
func (*Environment) MustModule ¶
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 ¶
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. |
file
File IO commands
|
File IO commands |
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.