Documentation
¶
Index ¶
- func Goto(ctx context.Context, args ...object.Object) object.Object
- func Install(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- func Run(ctx context.Context, args ...object.Object) object.Object
- type Browser
- func (b *Browser) Close() object.Object
- func (b *Browser) Cost() int
- func (b *Browser) Equals(other object.Object) object.Object
- func (b *Browser) GetAttr(name string) (object.Object, bool)
- func (b *Browser) Inspect() string
- func (b *Browser) Interface() interface{}
- func (b *Browser) IsTruthy() bool
- func (b *Browser) NewPage() object.Object
- func (b *Browser) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (b *Browser) SetAttr(name string, value object.Object) error
- func (b *Browser) Type() object.Type
- type BrowserType
- func (b *BrowserType) Cost() int
- func (b *BrowserType) Equals(other object.Object) object.Object
- func (b *BrowserType) GetAttr(name string) (object.Object, bool)
- func (b *BrowserType) Inspect() string
- func (b *BrowserType) Interface() interface{}
- func (b *BrowserType) IsTruthy() bool
- func (b *BrowserType) Launch() object.Object
- func (b *BrowserType) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (b *BrowserType) SetAttr(name string, value object.Object) error
- func (b *BrowserType) Type() object.Type
- type Locator
- func (l *Locator) Cost() int
- func (l *Locator) Equals(other object.Object) object.Object
- func (l *Locator) GetAttr(name string) (object.Object, bool)
- func (l *Locator) Inspect() string
- func (l *Locator) Interface() interface{}
- func (l *Locator) IsTruthy() bool
- func (l *Locator) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (l *Locator) SetAttr(name string, value object.Object) error
- func (l *Locator) Type() object.Type
- type LocatorArray
- func (la *LocatorArray) Contains(item object.Object) *object.Bool
- func (la *LocatorArray) Cost() int
- func (la *LocatorArray) DelItem(key object.Object) *object.Error
- func (la *LocatorArray) Equals(other object.Object) object.Object
- func (la *LocatorArray) GetAttr(name string) (object.Object, bool)
- func (la *LocatorArray) GetItem(key object.Object) (object.Object, *object.Error)
- func (la *LocatorArray) GetSlice(s object.Slice) (object.Object, *object.Error)
- func (la *LocatorArray) Inspect() string
- func (la *LocatorArray) Interface() interface{}
- func (la *LocatorArray) IsTruthy() bool
- func (la *LocatorArray) Iter() object.Iterator
- func (la *LocatorArray) Len() *object.Int
- func (la *LocatorArray) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (la *LocatorArray) SetAttr(name string, value object.Object) error
- func (la *LocatorArray) SetItem(key, value object.Object) *object.Error
- func (la *LocatorArray) Type() object.Type
- type LocatorArrayIterator
- func (it *LocatorArrayIterator) Cost() int
- func (it *LocatorArrayIterator) Entry() (object.IteratorEntry, bool)
- func (it *LocatorArrayIterator) Equals(other object.Object) object.Object
- func (it *LocatorArrayIterator) GetAttr(name string) (object.Object, bool)
- func (it *LocatorArrayIterator) Inspect() string
- func (it *LocatorArrayIterator) Interface() interface{}
- func (it *LocatorArrayIterator) IsTruthy() bool
- func (it *LocatorArrayIterator) Next(ctx context.Context) (object.Object, bool)
- func (it *LocatorArrayIterator) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (it *LocatorArrayIterator) SetAttr(name string, value object.Object) error
- func (it *LocatorArrayIterator) Type() object.Type
- type LocatorArrayIteratorEntry
- func (e *LocatorArrayIteratorEntry) Cost() int
- func (e *LocatorArrayIteratorEntry) Equals(other object.Object) object.Object
- func (e *LocatorArrayIteratorEntry) GetAttr(name string) (object.Object, bool)
- func (e *LocatorArrayIteratorEntry) Inspect() string
- func (e *LocatorArrayIteratorEntry) Interface() interface{}
- func (e *LocatorArrayIteratorEntry) IsTruthy() bool
- func (e *LocatorArrayIteratorEntry) Key() object.Object
- func (e *LocatorArrayIteratorEntry) Primary() object.Object
- func (e *LocatorArrayIteratorEntry) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (e *LocatorArrayIteratorEntry) SetAttr(name string, value object.Object) error
- func (e *LocatorArrayIteratorEntry) Type() object.Type
- func (e *LocatorArrayIteratorEntry) Value() object.Object
- type Page
- func (p *Page) Close() object.Object
- func (p *Page) Cost() int
- func (p *Page) Equals(other object.Object) object.Object
- func (p *Page) GetAttr(name string) (object.Object, bool)
- func (p *Page) Goto(url string) object.Object
- func (p *Page) Inspect() string
- func (p *Page) Interface() interface{}
- func (p *Page) IsTruthy() bool
- func (p *Page) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (p *Page) SetAttr(name string, value object.Object) error
- func (p *Page) Type() object.Type
- type PlaywrightInstance
- func (p *PlaywrightInstance) Cost() int
- func (p *PlaywrightInstance) Equals(other object.Object) object.Object
- func (p *PlaywrightInstance) GetAttr(name string) (object.Object, bool)
- func (p *PlaywrightInstance) Inspect() string
- func (p *PlaywrightInstance) Interface() interface{}
- func (p *PlaywrightInstance) IsTruthy() bool
- func (p *PlaywrightInstance) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (p *PlaywrightInstance) SetAttr(name string, value object.Object) error
- func (p *PlaywrightInstance) Stop() object.Object
- func (p *PlaywrightInstance) Type() object.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Goto ¶
Goto initializes Playwright, launches a browser, creates a page, navigates to the specified URL, calls the provided callback function with the page, and automatically handles cleanup
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
func (*Browser) RunOperation ¶
type BrowserType ¶
type BrowserType struct {
// contains filtered or unexported fields
}
BrowserType wraps the playwright BrowserType (like Chromium, Firefox, WebKit)
func (*BrowserType) Cost ¶
func (b *BrowserType) Cost() int
func (*BrowserType) Inspect ¶
func (b *BrowserType) Inspect() string
func (*BrowserType) Interface ¶
func (b *BrowserType) Interface() interface{}
func (*BrowserType) IsTruthy ¶
func (b *BrowserType) IsTruthy() bool
func (*BrowserType) Launch ¶
func (b *BrowserType) Launch() object.Object
Launch launches a browser of this type
func (*BrowserType) RunOperation ¶
func (b *BrowserType) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
func (*BrowserType) Type ¶
func (b *BrowserType) Type() object.Type
type Locator ¶
type Locator struct {
// contains filtered or unexported fields
}
Locator wraps the playwright Locator
func (*Locator) RunOperation ¶
type LocatorArray ¶
type LocatorArray struct {
// contains filtered or unexported fields
}
LocatorArray wraps a slice of playwright Locators
func (*LocatorArray) Cost ¶
func (la *LocatorArray) Cost() int
func (*LocatorArray) Inspect ¶
func (la *LocatorArray) Inspect() string
func (*LocatorArray) Interface ¶
func (la *LocatorArray) Interface() interface{}
func (*LocatorArray) IsTruthy ¶
func (la *LocatorArray) IsTruthy() bool
func (*LocatorArray) Iter ¶
func (la *LocatorArray) Iter() object.Iterator
func (*LocatorArray) Len ¶
func (la *LocatorArray) Len() *object.Int
func (*LocatorArray) RunOperation ¶
func (la *LocatorArray) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
func (*LocatorArray) SetAttr ¶
func (la *LocatorArray) SetAttr(name string, value object.Object) error
func (*LocatorArray) SetItem ¶
func (la *LocatorArray) SetItem(key, value object.Object) *object.Error
func (*LocatorArray) Type ¶
func (la *LocatorArray) Type() object.Type
type LocatorArrayIterator ¶
type LocatorArrayIterator struct {
// contains filtered or unexported fields
}
func (*LocatorArrayIterator) Cost ¶
func (it *LocatorArrayIterator) Cost() int
func (*LocatorArrayIterator) Entry ¶
func (it *LocatorArrayIterator) Entry() (object.IteratorEntry, bool)
func (*LocatorArrayIterator) Equals ¶
func (it *LocatorArrayIterator) Equals(other object.Object) object.Object
func (*LocatorArrayIterator) GetAttr ¶
func (it *LocatorArrayIterator) GetAttr(name string) (object.Object, bool)
func (*LocatorArrayIterator) Inspect ¶
func (it *LocatorArrayIterator) Inspect() string
func (*LocatorArrayIterator) Interface ¶
func (it *LocatorArrayIterator) Interface() interface{}
func (*LocatorArrayIterator) IsTruthy ¶
func (it *LocatorArrayIterator) IsTruthy() bool
func (*LocatorArrayIterator) RunOperation ¶
func (it *LocatorArrayIterator) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
func (*LocatorArrayIterator) SetAttr ¶
func (it *LocatorArrayIterator) SetAttr(name string, value object.Object) error
func (*LocatorArrayIterator) Type ¶
func (it *LocatorArrayIterator) Type() object.Type
type LocatorArrayIteratorEntry ¶
type LocatorArrayIteratorEntry struct {
// contains filtered or unexported fields
}
func (*LocatorArrayIteratorEntry) Cost ¶
func (e *LocatorArrayIteratorEntry) Cost() int
func (*LocatorArrayIteratorEntry) Equals ¶
func (e *LocatorArrayIteratorEntry) Equals(other object.Object) object.Object
func (*LocatorArrayIteratorEntry) GetAttr ¶
func (e *LocatorArrayIteratorEntry) GetAttr(name string) (object.Object, bool)
func (*LocatorArrayIteratorEntry) Inspect ¶
func (e *LocatorArrayIteratorEntry) Inspect() string
func (*LocatorArrayIteratorEntry) Interface ¶
func (e *LocatorArrayIteratorEntry) Interface() interface{}
func (*LocatorArrayIteratorEntry) IsTruthy ¶
func (e *LocatorArrayIteratorEntry) IsTruthy() bool
func (*LocatorArrayIteratorEntry) Key ¶
func (e *LocatorArrayIteratorEntry) Key() object.Object
func (*LocatorArrayIteratorEntry) Primary ¶
func (e *LocatorArrayIteratorEntry) Primary() object.Object
func (*LocatorArrayIteratorEntry) RunOperation ¶
func (e *LocatorArrayIteratorEntry) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
func (*LocatorArrayIteratorEntry) SetAttr ¶
func (e *LocatorArrayIteratorEntry) SetAttr(name string, value object.Object) error
func (*LocatorArrayIteratorEntry) Type ¶
func (e *LocatorArrayIteratorEntry) Type() object.Type
func (*LocatorArrayIteratorEntry) Value ¶
func (e *LocatorArrayIteratorEntry) Value() object.Object
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page wraps the playwright Page
func (*Page) RunOperation ¶
type PlaywrightInstance ¶
type PlaywrightInstance struct {
// contains filtered or unexported fields
}
PlaywrightInstance wraps the playwright.Playwright instance
func (*PlaywrightInstance) Cost ¶
func (p *PlaywrightInstance) Cost() int
func (*PlaywrightInstance) Equals ¶
func (p *PlaywrightInstance) Equals(other object.Object) object.Object
func (*PlaywrightInstance) GetAttr ¶
func (p *PlaywrightInstance) GetAttr(name string) (object.Object, bool)
func (*PlaywrightInstance) Inspect ¶
func (p *PlaywrightInstance) Inspect() string
func (*PlaywrightInstance) Interface ¶
func (p *PlaywrightInstance) Interface() interface{}
func (*PlaywrightInstance) IsTruthy ¶
func (p *PlaywrightInstance) IsTruthy() bool
func (*PlaywrightInstance) RunOperation ¶
func (p *PlaywrightInstance) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
func (*PlaywrightInstance) SetAttr ¶
func (p *PlaywrightInstance) SetAttr(name string, value object.Object) error
func (*PlaywrightInstance) Stop ¶
func (p *PlaywrightInstance) Stop() object.Object
Stop stops the Playwright instance and cleans up resources
func (*PlaywrightInstance) Type ¶
func (p *PlaywrightInstance) Type() object.Type
Click to show internal directories.
Click to hide internal directories.