I am doing some testing on this and am passing in the cssSelector value - I just need any of these three to be present then I want to continue. What’s the best way to feed in multiple cssSelectors so I’m looking for one OR the other to be displayed? I’ve tried the below, which works fine if one is passed in but if multiple are passed in with the || operator but it doesn’t seem to return true even if the correct object is present on the screen. Thanks!
objA = '[id=sponsored-14395] > div > div.actions.product__actions > div.actions__alignmentContainer > button'
objB = '[id*=sponsored-14395][id$=postCalone] > div > div.actions.product__actions > div.actions__alignmentContainer > button'
objC = '[id*=sponsored-14395][id$=prevClone] > div > div.actions.product__actions > div.actions__alignmentContainer > button'
boolean webElement = driver.findElement(By.cssSelector(objA||objB||objC)).isDisplayed()