summaryrefslogtreecommitdiff
path: root/testautomation/math/optional/includes/m_101_.inc
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/math/optional/includes/m_101_.inc')
-rwxr-xr-xtestautomation/math/optional/includes/m_101_.inc21
1 files changed, 13 insertions, 8 deletions
diff --git a/testautomation/math/optional/includes/m_101_.inc b/testautomation/math/optional/includes/m_101_.inc
index 98b72b99b734..4139e688f1f5 100755
--- a/testautomation/math/optional/includes/m_101_.inc
+++ b/testautomation/math/optional/includes/m_101_.inc
@@ -550,20 +550,25 @@ testcase tFilePrint
'/// print file ///'
try
Fileprint
- sleep 2
kontext
if active.exists(2) then
active.ok
qaerrorlog "There is no printer available - please install one on your system!"
- sleep 2
- Kontext "DruckenDlg"
- DruckenDlg.cancel
+ Kontext "Printing"
+ if ( Printing.exists( 2 ) ) then
+ Printing.cancel
+ else
+ warnlog( "Printing dialog did not open" )
+ endif
else
- sleep 2
- Kontext "DruckenDlg"
- DruckenDlg.Ok
+ Kontext "Printing"
+ if ( Printing.exists( 2 ) ) then
+ Printing.ok
+ else
+ warnlog( "Printing dialog did not open" )
+ endif
endif
- sleep 2
+
kontext
if active.exists(2) then
active.ok