[Webkit-unassigned] [Bug 245219] New: WebDriver throws blank WebDriverException when saving screenshot over 8192 pixels tall or wide in Selenium for Python

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 07:09:58 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=245219

            Bug ID: 245219
           Summary: WebDriver throws blank WebDriverException when saving
                    screenshot over 8192 pixels tall or wide in Selenium
                    for Python
           Product: WebKit
           Version: Other
          Hardware: Mac (Apple Silicon)
                OS: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kieran_geary at apple.com
                CC: bburg at apple.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220915/278a05d4/attachment.htm>


More information about the webkit-unassigned mailing list