summaryrefslogtreecommitdiff
path: root/test/test4.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test4.py')
-rwxr-xr-xtest/test4.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test4.py b/test/test4.py
index 75da32ef..9ac27286 100755
--- a/test/test4.py
+++ b/test/test4.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# This test tries document reload action.
@@ -12,9 +12,11 @@ run('atril', arguments=' '+srcdir+'/test-links.pdf')
# Reload document a few times
for i in range(1,6):
- click('View', roleName='menu')
- click('Reload', roleName='menu item')
+ focus.application('atril')
+ click('View', roleName='menu')
+ click('Reload', roleName='menu item')
# Close atril
+focus.application('atril')
click('File', roleName='menu')
click('Close', roleName='menu item')