tuanvinh1008
4 years agoContributor
How to verify the color of Progress bar control?
Hi all, I want to verify the color of the progress bar control. It's green. The progress bar is in status bar like image
- 4 years ago
Hi,
What technology (.Net, C++, VB, ...) your tested application is created with?
Can you talk to developers for their piece of advice of how color can be obtained?
Is this progress bar of uniform color? (I.e. without those fancy gradients.) If it is, then you may take its picture and get a color of the first pixel. I.e.:
var color = <progressBar>.Picture(0, 0, 5, 5).Pixels(2, 2);
if (clGreen == color)
...