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

Operator "or" does not work for /AXApplication #99

Description

@meskmanz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions