Whats the best approach to assert the colour of objects on a cross-platform app.
We have buttons and boxes that change colour depending on circumstances, we would like to use UITests to ensure these colours are showing in the app.
How can we do that?
I have read lots of post stating to use the getbackground method but this does not work and brings back null, i have found getting a text colour is possible but getting the colour of a box or button always shows null
app.Query(e => e.Marked(“<text>”).Invoke("getCurrentTextColor").Value<int>())
Above is what I was using to get text colour