verifyElementText( this.string OR thisother.string )

How would I go about testing is an element has string1 or string2?

WebUI.verifyElementText(findTestObject(ObjectX), ???)

def elementText = WebUI.getText(findTestObject(ObjectX))
assert elementText.equals(string1) || elementText.equals(string2)
1 Like