diff options
Diffstat (limited to 'test/testCommon.py')
-rw-r--r-- | test/testCommon.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/testCommon.py b/test/testCommon.py index dd6ec51a..c4aa3a0e 100644 --- a/test/testCommon.py +++ b/test/testCommon.py @@ -6,6 +6,16 @@ import signal os.environ['LANG'] = 'C' +# try and figure out the role name for push buttons, which changed in ATSPI 2.53 +try: + import gi + gi.require_version('Atspi', '2.0') + from gi.repository import Atspi + + pushButton = Atspi.role_get_name(Atspi.Role.PUSH_BUTTON) +except ImportError: + pushButton = 'push button' + from dogtail.config import config config.logDebugToStdOut = True config.logDebugToFile = False |