7 srcdir = os.environ['srcdir']
8 homedir = os.environ["HOME"] + "/";
10 from dogtail.procedural import *
12 if os.path.exists(homedir + "output.ps"):
13 os.unlink(homedir + "output.ps")
15 run('evince', arguments=' '+srcdir+'/test-page-labels.pdf')
17 click('File', roleName='menu')
18 click('Print...', roleName='menu item')
21 click('Print to File', roleName='table cell', raw=True)
22 click('Print', roleName='push button')
24 statinfo = os.stat (homedir + "output.ps")
25 if statinfo.st_size > 100000:
27 os.unlink (homedir + "output.ps")
30 click('File', roleName='menu')
31 click('Close', roleName='menu item')