]> www.fi.muni.cz Git - evince.git/blob - test/test7.py
[timer] fix Issue #5
[evince.git] / test / test7.py
1 #!/usr/bin/python
2
3 # Test printing
4
5 import os
6 os.environ['LANG']='C'
7 srcdir = os.environ['srcdir']
8
9 from dogtail.procedural import *
10
11 run('evince', arguments=' '+srcdir+'/test-page-labels.pdf')
12
13 #!/usr/bin/python
14 from dogtail.procedural import *
15
16 focus.application('evince')
17 focus.frame('test-page-labels.pdf')
18 click('File', roleName='menu')
19 click('Print...', roleName='menu item')
20 focus.dialog('Print')
21 click('Pages:', roleName='radio button')
22 keyCombo('Tab')
23 type('1')
24 click('Page Setup', roleName='page tab', raw=True)
25 click('All sheets')
26 click('Even sheets')
27 click('Print Preview', roleName='push button')
28 keyCombo('Return')
29 click('Cancel')
30
31 # Close evince
32 click('File', roleName='menu')
33 click('Close', roleName='menu item')