Created
December 20, 2022 12:41
-
-
Save cooljl31/817757621f6116ee0fc18909c59ab48a to your computer and use it in GitHub Desktop.
Create screenshot using Capybara and Selenium from debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page.driver.browser.manage.window.resize_to(1600, 1800) | |
page.save_and_open_screenshot('screen.png', full: true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment