cancel
Showing results for 
Search instead for 
Did you mean: 

Edited cell turns to a different color, how to automate this?

Visitor

Edited cell turns to a different color, how to automate this?

Hi,

I am working on an electron application. I have a cell which when edited turns green(bg color) colour for 3 seconds and goes back to original bg colour which is black. How do I automate this scenario using Test Complete.

3 REPLIES 3
Community Hero

Re: Edited cell turns to a different color, how to automate this?

I would think there would be some kind of property on the object you could chec, but without more information I'm not sure.

 

That said this is a visual / appearance test which doesn't really make sense to automate IMHO.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Highlighted
Community Leader

Re: Edited cell turns to a different color, how to automate this?

Look at WaitProperty("propertyname", "value", time to wait in milliseconds)

 

In your case, you will be waiting for the bgcolor of the textbox to be red or green and wait for whatever amount of time that usually takes.

example: 

Mytextbox.WaitProperty("bgcolor", "red", 30000);

 

Hope that makes sense

Cheers

-Lino

Community Manager

Re: Edited cell turns to a different color, how to automate this?

Thanks for the help, @LinoTadros@cunderw.

 

@jerkins, did the suggestions help you? Is there any solution you can share with us?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video: