| Summary: | WebDriver throws blank WebDriverException when saving screenshot over 8192 pixels tall or wide in Selenium for Python | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kieran <kieran_geary> |
| Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED MOVED | ||
| Severity: | Normal | CC: | bburg, bfulgham, pangle, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | Other | ||
The cause of this bug is outside of WebKit code, so resolving as MOVED. The fix was tracked under <rdar://99894810>, and shipped in iOS 16.4.1 and macOS 13.3.1. |
macOS 12.6 Safari 16.0 Overview WebDriver throws an WebDriverException with empty message for images with width or height exceeding 8192pixels in width or height. Steps to Reproduce: 1) Install Selenium for Python python pip3 install selenium 2) Initialise an instance of Safari WebDriver in Python like so... from selenium import webdriver driver = webdriver.Safari() driver.get("http://google.co.uk") driver.set_window_size(734,8192) driver.get_screenshot_as_base64() # This should succeed. driver.set(window_size(734,8193) driver.get_screenshot_as_base46() # This should throw the above error. Actual Result selenium.common.exceptions.WebDriverException: Message: Expected result A successful screenshot of the full view. Hardware: Occurs consistently on M1 Macbook Pro