I have a page. when I scroll it manually, it grows and then I can scroll it again and again until the scroll arrives to the bottom (a good example is a facebook timeline page).
I try to write:
static IWebDriver driver = new ChromeDriver(@"C:\selenium\net40");
IJavaScriptExecutor js = driver as IJavaScriptExecutor;
then I entered a page and did:
js.ExecuteScript("window.scroll(0, document.height)");
but I can scroll more.
how can I make it to scroll to the bottom even if the page is growing?
any help appreciated!