Added two weeks, some minor fixes

This commit is contained in:
2022-02-22 22:27:05 -06:00
parent 95a327924f
commit 1f93fb5e38
3 changed files with 36 additions and 18 deletions

View File

@@ -12,11 +12,11 @@ var scroll string
func (r *Runner) Scroll(limit int, timeout int) {
_, err := r.page.Eval(scroll, limit, timeout)
if err != nil {
panic("Scroll Error")
fmt.Println("Scroll error")
}
err = r.page.Timeout(5 * time.Second).WaitLoad()
for err != nil {
fmt.Println("scroll")
err = r.page.Timeout(5 * time.Second).WaitLoad()
r.page.Timeout(5 * time.Second).WaitLoad()
if err != nil {
fmt.Println("Scroll Waitload Error")
}
}