Ask a Question

How to verify the color of Progress bar control?

SOLVED
tuanvinh1008
Contributor

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

 

tuanvinh1008_0-1624026914376.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: How to verify the color of Progress bar control?

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)

  ...

 

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

4 REPLIES 4
Marsha_R
Community Hero

Re: How to verify the color of Progress bar control?

Are you able to see the progress bar with Object Spy?  You may be able to find a color attribute that way.

tuanvinh1008
Contributor

Re: How to verify the color of Progress bar control?

yes, I see it on Object spy but don't see any attribute or method to get the color

AlexKaras
Community Hero

Re: How to verify the color of Progress bar control?

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)

  ...

 

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

jeanette17
New Contributor

Re: How to verify the color of Progress bar control?

You can find the code for the updated, styled example on Github, and view it live. The custom video controls and <progress> element are now contained color for styling the progress bar's background color as it increases.

cancel
Showing results for 
Search instead for 
Did you mean: