File: testHelpMenu.py

package info (click to toggle)
atril 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,852 kB
  • sloc: ansic: 67,359; cpp: 2,719; makefile: 1,589; xml: 745; python: 333; sh: 111; perl: 54
file content (28 lines) | stat: -rwxr-xr-x 654 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python3

# This test opens the Help menu and runs through the menu items.

from testCommon import run_app, bail

from dogtail.procedural import *

try:
    run_app()

    click('Help', roleName='menu')
    click('About', roleName='menu item')
    focus.dialog('About Xreader')
    click('License', roleName='toggle button')
    click('Close', roleName='push button')

    focus.frame('Recent Documents')
    click('Help', roleName='menu')
    click('Contents', roleName='menu item')

    keyCombo('<Control>w')

    focus.frame('Recent Documents')
    click('File', roleName='menu')
    click('Close', roleName='menu item')
except:
    bail()