File: test1.py

package info (click to toggle)
atril 1.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,236 kB
  • sloc: ansic: 73,935; cpp: 2,714; makefile: 1,666; xml: 801; python: 110; sh: 32
file content (36 lines) | stat: -rwxr-xr-x 866 bytes parent folder | download | duplicates (7)
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
29
30
31
32
33
34
35
36
#!/usr/bin/python

# This test opens the interface and just clicks around a bit.

import os
os.environ['LANG']='C'

from dogtail.procedural import *

run('atril')

# Test file->open
click('File', roleName='menu')
click('Open...', roleName='menu item')
focus.dialog('Open Document')
click('Cancel', roleName='push button')

# Toolbar editor
click('Edit', roleName='menu')
click('Toolbar', roleName='menu item')
focus.dialog('Toolbar Editor')
click('Close', roleName='push button')

# About dialog
click('Help', roleName='menu')
click('About', roleName='menu item')
focus.dialog('About Document Viewer')
click('Credits', roleName='push button')
focus.dialog('Credits')
click('Close', roleName='push button')
focus.dialog('About Document Viewer')
click('Close', roleName='push button')

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