Versions in this module Expand all Collapse all v1 v1.0.3 Apr 14, 2020 Changes in this version type Browser + Console *log.Logger + ConsoleFile *os.File v1.0.2 Apr 14, 2020 Changes in this version + const LogAll + const LogBasic + const LogDetails + var Wait = time.Millisecond * 50 + func GetWebsocket(lg *log.Logger, port int) *websocket.Conn + func Read(frame *Frame) + func SendClose(lg *log.Logger, c *websocket.Conn) + func UpdateDOMEvent(frame *Frame, method string, event json.Unmarshaler) + func Write(frame *Frame) + type Action struct + CommandIndex int + Commands []Command + Events map[string]Event + func NewAction(events []Event, commands []Command) *Action + func (act *Action) Run(frame *Frame) error + type Browser struct + Log *log.Logger + LogFile *os.File + PID int + Port int + TempDir string + func NewBrowser(path string, port int, logfile string, args ...string) *Browser + func (b *Browser) Stop() + type Command struct + ID int64 + Method string + Params json.Marshaler + Reply CommandReply + Timeout time.Duration + type CommandReply interface + GetFrameID func() string + MatchFrameID func(frameID string, m []byte) (bool, error) + type Error struct + Code int64 + Message string + func (e *Error) Error() string + type Event struct + IsFound bool + IsRequired bool + Name string + Value CommandReply + type Frame struct + ActionChan chan []byte + AllComplete chan struct{} + Browser *Browser + CacheCompleteChan chan struct{} + CommandChan chan (<-chan time.Time) + Conn *websocket.Conn + CurrentAction *Action + DOM *dom.GetFlattenedDocumentReply + FrameID string + LoaderID string + LogFile *os.File + LogLevel LogLevelValue + RequestID RequestID + func Start(browser *Browser, logLevel LogLevelValue) *Frame + func (f *Frame) AddDOMNode(node dom.Node) + func (f *Frame) Children(parentID dom.NodeID) []dom.Node + func (f *Frame) Clear() + func (f *Frame) CommandTimeout() <-chan time.Time + func (f *Frame) FindByAttribute(parentID dom.NodeID, attribute, value string) []dom.Node + func (f *Frame) GetCommandMethod() string + func (f *Frame) GetDOM() *dom.GetFlattenedDocumentReply + func (f *Frame) GetFrameID() string + func (f *Frame) HasCommandID(id int64) bool + func (f *Frame) HasEvent(name string) bool + func (f *Frame) IsCommandComplete() bool + func (f *Frame) IsComplete() bool + func (f *Frame) Log() + func (f *Frame) SetCurrentAction(act *Action) + func (f *Frame) SetDOM(dom *dom.GetFlattenedDocumentReply) + func (f *Frame) SetEvent(frame *Frame, name string, m Message) error + func (f *Frame) SetResult(frame *Frame, m Message) error + func (f *Frame) Stop(closeBrowser bool) + func (f *Frame) ToJSON() []byte + type LogLevelValue int + type Message struct + Error *Error + ID int64 + Method string + Params json.RawMessage + Result json.RawMessage + type RequestID struct + Value int64 + func (id *RequestID) GetNext() int64