removed waiting for 1st post (on some sites "1 post is fully rendered" != "whole page loaded")
This commit is contained in:
parent
21c72b43b0
commit
73fbeaa77a
@ -80,16 +80,6 @@ func (p *pageParser) waitFullLoad() {
|
|||||||
log.Debugf("WaitFor LoadState finished with %v", err)
|
log.Debugf("WaitFor LoadState finished with %v", err)
|
||||||
cancel()
|
cancel()
|
||||||
}()
|
}()
|
||||||
go func() {
|
|
||||||
err := p.page.Locator(p.task.SelectorPost).Locator(p.task.SelectorTitle).Last().WaitFor(
|
|
||||||
playwright.LocatorWaitForOptions{
|
|
||||||
State: playwright.WaitForSelectorStateVisible,
|
|
||||||
Timeout: timeout,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
log.Debugf("WaitFor LOCATOR finished with %v", err)
|
|
||||||
cancel()
|
|
||||||
}()
|
|
||||||
|
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user