Poltergeist page.driver.resize (width, height) and page.driver.scroll_to (left, top) do nothing

I use poltergiest and phantomjs for my integration tests, and I need to check the behavior of the user scrolling the page and customizing the browser window. I used both page.driver.resize(width, height) and page.driver.scroll_to(left, top) . I took screenshots before and after the method call, and nothing happens. The method is called successfully, but does not affect the page. Does anyone know why this could be?

+7
phantomjs poltergeist
source share
1 answer

Try this to resize:

 page.driver.resize_window(width, height) 
+1
source share

All Articles