Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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

1 Answer 1

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.