Hopefully someone can help me. I am trying to use verifytextpresent and OR , but my “OR” statement does seem to work.
This is my line of code that is giving me problems
assert WebUI.verifyTextPresent(today , false) || WebUI.verifyTextPresent(yesterday, false)
This is the code where I define today and yesterday.
mydate = new Date()
String today = mydate.format("MM/dd/yyyy")
mydate2 = new Date()
mydate2 = mydate2.previous()
String yesterday = mydate2.format("MM/dd/yyyy")
Right now the test will pass, but if swap the today and yesterday variable it fails.
Any assistance would be appreciated