This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
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’”

  • created

    Mar '18
  • last reply

    Mar '18
  • 1

    reply

  • 361

    views

  • 2

    users

  • 1

    link