--- id: "67741b3d-585e-440a-aad7-90061a3bfad8" name: "Screenshot Pixel Coordinates" micro_summary: "Screenshots were 2× device pixels while clicks used CSS pixels; divide original screenshot coordinates by `devicePixelRatio`." status: "discarded" see_also: [] scope: "Failed approach: passing raw device-pixel screenshot coordinates directly to `click_at_xy()`." discard_reason: "Raw device-pixel screenshot coordinates missed the CSS click viewport; divide by devicePixelRatio." --- The captured screenshot was 2940×1672 while `window.innerWidth/innerHeight` were 1470×836 with `devicePixelRatio=2`. Raw screenshot coordinates therefore exceeded the CSS viewport and clicks missed or no-op'd. Use original screenshot pixels divided by DPR; ignore any additional scaling applied by the image viewer.