HI All,
I have a peculiar requirement to take screenshot of a page where height of a page can exceed 16384. I am using chrome driver 2.34 (32-bit) and Chrome browser 63.0 (64-bit) headless on a Windows machine (64-bit). I am taking a screenshot of dendrogram tree produced using html on a web page. However, when the screenshot is taken I find that the maximum height of the image is 16384 pixels. It crops the rest of the image height. The requirement is to capture the whole image where width = 600 and height up to 32768. Is there a known limitation with screenshots? The chrome driver log does not complain on height, but the image returned in cropped. Is this the problem with window resize or screenshot?
Here is snippet from chromedriver log
[3.550][DEBUG]: DEVTOOLS RESPONSE Browser.getWindowForTarget (id=5) {
"bounds": {
"height": 1080,
"left": 0,
"top": 0,
"width": 1920,
"windowState": "normal"
},
"windowId": 1
}
[3.550][DEBUG]: DEVTOOLS COMMAND Browser.setWindowBounds (id=6) {
"bounds": {
"height": 21050,
"width": 600
},
"windowId": 1
}
[3.554][DEBUG]: DEVTOOLS RESPONSE Browser.setWindowBounds (id=6) {
}
[3.668][INFO]: RESPONSE SetWindowSize
[3.677][INFO]: COMMAND GetWindowSize {
"windowHandle": "current"
}
[3.677][DEBUG]: DEVTOOLS COMMAND Browser.getWindowForTarget (id=7) {
"targetId": "(41788ACA4A11684AED3426D61E045403)"
}
[3.679][DEBUG]: DEVTOOLS RESPONSE Browser.getWindowForTarget (id=7) {
"bounds": {
"height": 21050,
"left": 0,
"top": 0,
"width": 600,
"windowState": "normal"
},
"windowId": 1
}
Appreciate any help on this
GB