1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-02-03 13:11:45 +02:00
ferret/pkg/drivers/cdp/templates/dom_ready.go
Tim Voronov 162dd07346
Feature/425 iframe navigation (#535)
* Updated navigation logic

* Fixed goroutine deadlock

* Fixed closing chan

* Added support of waiting for individual frame navigation

* Updated EventLoop API in order to avoid double closing of event sources

* Fixed attr retrieval

* Removed redundant println

* Updated DOM Readiness check
2020-07-13 14:13:03 -04:00

14 lines
173 B
Go

package templates
const domReadyTemplate = `
if (document.readyState === 'complete') {
return true;
}
return null;
`
func DOMReady() string {
return domReadyTemplate
}