Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to check, whether a background that was grey turned into black. Usually I wait for changes of attributes like this:

Aliases.MyApp.BtnCalculationType.WaitProperty("Enabled", "True", 9999999);


Aliases.MyApp.BtnCalculationType.WaitProperty("Fill.Color.B", "0", 9999999);

does not work. What to do instead?

share|improve this question
What exactly does "does not work" mean? Are you getting any error messages? – Helen Sep 30 '13 at 15:46

Firstly, the Fill.Color.B property value is a number, not a string, so you need to remove quotes around 0:

Aliases.MyApp.BtnCalculationType.WaitProperty("Fill.Color.B", 0, 9999999)

Secondly, Fill.Color.B is the color's blue component. You may need to also check the red, green and alpha components. To do this, you need to use a custom comparison instead of WaitProperty (WaitProperty doesn't support checking multiple properties at once). For example:

// JScript
var btn = Aliases.MyApp.BtnCalculationType;
while ((btn.Fill.Color.B != 0) || (btn.Fill.Color.R != 0) || (btn.Fill.Color.G != 0))
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.