We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ed1d4 commit 6c37173Copy full SHA for 6c37173
tests/selenium/test_heat_map_selenium.py
@@ -34,6 +34,11 @@ def test_heat_map_with_weights(driver):
34
driver.verify_js_logs()
35
canvas = driver.wait_until("canvas.leaflet-heatmap-layer")
36
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']}")
42
# get the canvas as a PNG base64 string
43
canvas_base64 = driver.execute_script(
44
"return arguments[0].toDataURL('image/png').substring(21);", canvas
0 commit comments