Documentation ¶
Index ¶
- type Vesta
- func (v *Vesta) AddTask(action chromedp.Action) *Vesta
- func (v *Vesta) Cancel()
- func (v *Vesta) Eval(jsScript string, res interface{}) *Vesta
- func (v *Vesta) EvalModule(jsScript string, res interface{}) *Vesta
- func (v *Vesta) Get(jsScript string, res interface{}) error
- func (v *Vesta) GetImage() (*img.Img, error)
- func (v *Vesta) GetScreen() ([]byte, error)
- func (v *Vesta) GetValue(jsScript string) (interface{}, error)
- func (v *Vesta) Location(url string) *Vesta
- func (v *Vesta) Nav(url string) *Vesta
- func (v *Vesta) Run() error
- func (v *Vesta) Screen(res *[]byte) *Vesta
- func (v *Vesta) Viewport(width, height int64) *Vesta
- func (v *Vesta) Wait(d time.Duration) *Vesta
- func (v *Vesta) WaitID(id string) *Vesta
- func (v *Vesta) WaitQuery(id string) *Vesta
- func (v *Vesta) WaitReady(sel interface{}) *Vesta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vesta ¶
type Vesta struct {
// contains filtered or unexported fields
}
Vesta 不支持单元测试环境
func (*Vesta) Cancel ¶
func (v *Vesta) Cancel()
@see https://github.com/chromedp/chromedp/issues/592 C:\Users\Administrator\AppData\Local\Temp Cancel 取消, window/temp下生成chromedp-runner文件有时候不会被移除,日积月累容易导致硬盘空间不足 => 待验证
func (*Vesta) EvalModule ¶
EvalModule 支持CommonJS的模块化支持,获取模块抛出的对象
Click to show internal directories.
Click to hide internal directories.