Skip to content
Advertisement

Selenium – How to find color of a pixel on canvas on X Y position?

I’m using selenium with python and I have a problem: I want to get pixel color of x y position on canvas.

Does Selenium have some color picker or something similar?

I tried get color of a pixel with getCssValue but it doesn’t work because it is canvas.

This is an example what I’m trying to achieve

JavaScript

Advertisement

Answer

This is apparently not possible directly with selenium.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement