Added two weeks, some minor fixes
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user