This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 426
resize_window has no effect on save_and_open_screenshot with qt5 #840
Comments
👍 |
3 similar comments
👍 |
👍 |
👍 |
I'll try to revisit this during the 2.0 release. It should be easier then, as we'll no longer have Qt 4 in the mix and we can remove a large amount of support code for deprecated functionality. |
👍 |
Looking forward to that! Can't figure out why my screenshots are so small. :( |
Any news on this one? |
+1 |
2 similar comments
👍 |
👍 |
Just ran into this. For now I'm monkeypatching Capybara: module Capybara
class Session
def save_screenshot(path = nil, options = {})
options[:width] = current_window.size[0] unless options[:width]
options[:height] = current_window.size[1] unless options[:height]
path = prepare_path(path, 'png')
driver.save_screenshot(path, options)
path
end
end
end |
@whitslar This monkey patch worked perfectly for us. Thanks! |
There is no need to monkey patch Here is an instruction from
This issue can be closed AFAIU. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Similar to
#354
I am seeing a similar issue as @datapimp on the same configuration:
Mavericks using Homebrew
qt4
resize_window
affectssave_and_open_screenshot
qt5
resize_window
won't affectsave_and_open_screenshot
Any ideas around this since #354 was closed by @jferris ?
The text was updated successfully, but these errors were encountered: