removed waiting for 1st post (on some sites "1 post is fully rendered" != "whole page loaded")

This commit is contained in:
Egor Aristov 2025-03-12 12:02:44 +03:00
parent 21c72b43b0
commit 73fbeaa77a

View File

@ -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()
} }