1234567891011121314151617181920212223 |
- package lxrod
- import (
- "github.com/go-rod/rod"
- "github.com/go-rod/rod/lib/proto"
- )
- type NavigateResultFunc = func() (proto.PageNavigatedWithinDocument, bool)
- func WaitVuePageNavigated(p *rod.Page) NavigateResultFunc {
- var e proto.PageNavigatedWithinDocument
- wait := p.WaitEvent(&e)
- return func() (proto.PageNavigatedWithinDocument, bool) {
- wait()
- return e, e != proto.PageNavigatedWithinDocument{}
- }
- }
|