I want to assert.true 2 different value, one or the other.
I am getting the value of the background color, which is being changed, so it can have two different colors as the option.
This is what I have:
Assert.assertTrue(Assert_BG1.contains("0, 255, 1, 1"));
But I want it to assertTrue that value and if that value is not present, assert the next value. I know you cannot write if and statements with assertTrue.
What would be the easiest way to achieve this in Java?
Thanks