[quote=“Aleksei, post:20, topic:16798, full:true”]
I observed an un intended blank before the XCUIElementTypeOther, so I used it like this
@iOSXCUITFindBy(iOSNsPredicate = "(type == ‘XCUIElementTypeButton’ OR type == ‘XCUIElementTypeOther’ ) AND visible == 1 AND (name == 'Allow While Using App' OR name == 'Allow' OR name == 'OK' OR name == 'Horizontal scroll bar, 1 page')")
I got back this message:
Caused by: org.openqa.selenium.NoSuchElementException: Can't locate an element by this strategy: By.chained({AppiumBy.iOSNsPredicate: (type == ‘XCUIElementTypeButton’ OR type == ‘XCUIElementTypeOther’ ) AND visible == 1 AND (name == 'Allow While Using App' OR name == 'Allow' OR name == 'OK' OR name == 'Horizontal scroll bar, 1 page')})
name == ‘Horizontal scroll bar, 1 page’ belongs to XCUIElementTypeOther