summaryrefslogtreecommitdiff
path: root/test/test5.py
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-06-26 10:15:07 +0800
committerraveit65 <[email protected]>2019-07-01 16:22:46 +0200
commitdc0b8781552c221ac9910faf70224f2ac506775d (patch)
tree447e06dbb0518d7355e0708a01a2e6297adf39a3 /test/test5.py
parentcb4293fe6cb01c7ffcb890a22e91ed0702d2656f (diff)
downloadatril-dc0b8781552c221ac9910faf70224f2ac506775d.tar.bz2
atril-dc0b8781552c221ac9910faf70224f2ac506775d.tar.xz
force get focus on atril when testing
Diffstat (limited to 'test/test5.py')
-rwxr-xr-xtest/test5.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test5.py b/test/test5.py
index 87729995..48218881 100755
--- a/test/test5.py
+++ b/test/test5.py
@@ -10,11 +10,13 @@ from dogtail.procedural import *
run('atril', arguments=' '+srcdir+'/test-page-labels.pdf')
+focus.application('atril')
focus.widget('page-label-entry')
focus.widget.text = "iii"
activate()
if focus.widget.text != "III":
+ focus.application('atril')
click('File', roleName='menu')
click('Close', roleName='menu item')
exit (1)