1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00
teampoltergeist--poltergeist/lib
Jiunn Haur Lim 24b0b4f198 Add driver#scroll_to and :selector option.
`driver#scroll_to` allows scrolling. For example,

    page.driver.scroll 200, 100

will set window.scrollX to 200 and window.scrollY to 100 if the viewport can
scroll that far.

The `:selector` option for render allows element capture.

For example,

    page.render selector: '#penultimate'

will take a screenshot of the entire element, even if it is outside the current
viewport.
2013-08-15 13:43:41 -07:00
..
capybara Add driver#scroll_to and :selector option. 2013-08-15 13:43:41 -07:00