summaryrefslogtreecommitdiff
path: root/test/testZoom.py
blob: 994a2ee9f413a80232430bbf477717f048c3c0d4 (plain)
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
#!/usr/bin/python3

# This test opens the View menu and test zoom features.

from testCommon import run_app, bail

from dogtail.procedural import *

try:
    run_app(file='test-links.pdf')

    # Zoom In
    focus.frame('test-links.pdf')
    click('View', roleName='menu')
    click('Zoom In', roleName='menu item')

    # Zoom Out
    click('View', roleName='menu')
    click('Zoom Out', roleName='menu item')

    # Close
    click('File', roleName='menu')
    click('Close', roleName='menu item')

except:
    bail()