Open jub0bs opened 4 years ago
I'm trying to navigate down a JavaScript-heavy page. Is there any way to focus on a given page element (e.g. to force an infinite scroll to kick in)?
for i := 0; i < 10000; i += 500 { page.RunScript("window.scrollTo(0, offset);", map[string]interface{}{"offset": i}, nil) time.Sleep(1000 * time.Millisecond) }
I'm trying to navigate down a JavaScript-heavy page. Is there any way to focus on a given page element (e.g. to force an infinite scroll to kick in)?