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
| # There is a bug with the chrome driver that does not respect the screen_size option, so we have this hack | |
| # to resize the window to the proper size after it visits a page. | |
| # | |
| # This should be removed in the future once the bug is fixed. | |
| # | |
| # See: https://github.com/SeleniumHQ/selenium/issues/15827 | |
| def visit(...) | |
| super.tap do | |
| page.driver.browser.manage.window.resize_to(1400, 800) | |
| end |