mattheworiordan / capybara-screenshot

Automatically save screen shots when a Capybara scenario fails
MIT License
1.02k stars 168 forks source link

Capybara::Screenshot.webkit_options not being respected when using poltergeist driver #199

Closed nassredean closed 7 years ago

nassredean commented 7 years ago

Hey folks! I'm currently in the process of switching our codebase from using capybara-webkit to poltergeist. I have noticed that when taking a screenshot, the setting Capybara::Screenshot.webkit_options is no longer respected. Just wondering if anyone has observed this before, or if this is a known issue. I will continue to investigate on my end. Thanks!

nassredean commented 7 years ago

Just answered my own question. It looks like the screenshot will only be as big as the window size of the driver (of course!) and the default windows_size in poltergeist appears to be smaller than the size at which I was setting the screenshot options. My bad! Sorry for the nuisance.