Poltergeist page.driver.resize(width, height) and page.driver.scroll_to(left, top) are doing nothing
Asked Answered
Y

1

7

I'm using poltergiest and phantomjs for my integration tests and I need to test behavior for a user scrolling down the page and adjusting the browser window. I've used both page.driver.resize(width, height) and page.driver.scroll_to(left, top). I've taken screenshots before and after the method is called, and nothing seems to happen. The method is called successfully, but has no effect on the page. Does anyone know why this might be?

Yellowlegs answered 10/2, 2014 at 23:52 Comment(0)
H
1

Try this one for resizing:

page.driver.resize_window(width, height)
Hoang answered 14/1, 2016 at 14:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.