poster = Find(
by=MobileBy.XPATH,
value='//XCUIElementTypeCollectionView/XCUIElementTypeCell'
'/XCUIElementTypeOther/XCUIElementTypeImage |'
'//XCUIElementTypeCollectionView/XCUIElementTypeCell[1]'
'/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’”