Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

BigSur support #14

@alekseijershov

Description

@alekseijershov

Hi!

I'm tried to use atomacos on the new Mac OS BigSur. And I received an exception message, but the UI action was successful.
My steps:

  1. Open System Preferences -> Security and. Privacy
  2. Execute next code

` import atomacos

main_window = atomacos.getAppRefByBundleId('com.apple.systempreferences')

main_window.buttonsR('Click the lock to make changes.')[0].Press()`

Actual Result:

  • Lock button was pressed
  • Exception message in output:

File "/Users/test/Desktop/main.py", line 5, in <module> main_window.buttonsR('Click the lock to make changes.')[0].Press() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/atomacos/AXClasses.py", line 226, in performSpecifiedAction return action() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/atomacos/_a11y.py", line 74, in perform_ax_action self._perform_ax_actions(item) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/atomacos/_a11y.py", line 270, in _perform_ax_actions PAXUIElementPerformAction(self.ref, name) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/atomacos/_macos.py", line 226, in PAXUIElementPerformAction errors.check_ax_error(error_code, error_messages) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/atomacos/errors.py", line 118, in check_ax_error raise AXErrorFactory(error_code)(error_message) atomacos.errors.AXErrorAttributeUnsupported: Unknown AX Error: -25205

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions