Skip to content

Commit 6c37173

Browse files
committed
print canvas size
1 parent 26ed1d4 commit 6c37173

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/selenium/test_heat_map_selenium.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ def test_heat_map_with_weights(driver):
3434
driver.verify_js_logs()
3535
canvas = driver.wait_until("canvas.leaflet-heatmap-layer")
3636
assert canvas
37+
# Print the canvas size
38+
canvas_size = driver.execute_script(
39+
"return {width: arguments[0].width, height: arguments[0].height};", canvas
40+
)
41+
print(f"Canvas size: {canvas_size['width']}x{canvas_size['height']}")
3742
# get the canvas as a PNG base64 string
3843
canvas_base64 = driver.execute_script(
3944
"return arguments[0].toDataURL('image/png').substring(21);", canvas

0 commit comments

Comments
 (0)