If('object1' && 'object2'=false)

Hi,

I’m wondering if it is possible to do something like that :

if (WebUI.verifyElementPresent(findTestObject(‘Object1’ && ‘Object2’==false), 10, FailureHandling.CONTINUE_ON_FAILURE)) {

}
else
{
}

@dylan.campion No, not the way you have it presented. However, you can do something like:

if (WebUI.verifyElementPresent(findTestObject(‘Object1’), 10)) == false && WebUI.verifyElementPresent(findTestObject(‘Object2’), 10))==false) {

Since you are testing the condition is the element present, you likely don’t need to have the FailureHandling component in the parameters.

1 Like