This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Description
I noticed that the Notification Center on Mac OS has a different title on different Mac OS versions so for my test I decided to use the following condition @AXTitle='Notification Center' or @AXTitle='Notification Centre'. But I bumped into the problem that it does not work in some of my XPathes.
So I have the following XPath: "/AXApplication[@AXTitle='Notification Center' or @AXTitle='Notification Centre']/AXWindow/AXScrollArea/AXTable/AXRow/AXCell/AXButton[@AXIdentifier='titleCloseButton']"
where I have boolean operator "or" placed in /AXApplication section and driver cannot find element using this xpath.
However, XPath: /AXApplication[@AXTitle='SystemUIServer']/AXMenuBar[0]/AXMenuBarItem[@AXTitle='Notification Center' or @AXTitle='Notification Centre']" works fine.