Unable to use OR operator with mobileby xpath

poster = Find(
          '/XCUIElementTypeOther/XCUIElementTypeImage |'

The element I’m finding has either one of the xpaths above and I’m using the or operator but it seems it’s not supported, how can I fix this? There are no accessibility id’s available.

“TypeError: unsupported operand type(s) for |: ‘str’ and ‘str’”

The bitwise OR operator is not the logical OR operator. They do very different things and are not interchangeable. You cannot use the bitwise OR operator with Appium to compare elements or strings. Try using the logical OR operator.