summaryrefslogtreecommitdiff
path: root/testautomation/framework/optional/includes/options_ooo_security.inc
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/framework/optional/includes/options_ooo_security.inc')
-rwxr-xr-x[-rw-r--r--]testautomation/framework/optional/includes/options_ooo_security.inc16
1 files changed, 6 insertions, 10 deletions
diff --git a/testautomation/framework/optional/includes/options_ooo_security.inc b/testautomation/framework/optional/includes/options_ooo_security.inc
index c3dece4de849..be542fc71689 100644..100755
--- a/testautomation/framework/optional/includes/options_ooo_security.inc
+++ b/testautomation/framework/optional/includes/options_ooo_security.inc
@@ -91,13 +91,6 @@ sub checkSecurityPage( _file as string )
warnlog( "Failed to open Security options" )
endif
- Kontext "TabSecurity"
- if ( TabSecurity.exists() ) then
- checkCheckBox( _file , "*" , RecommendToOpenDocumentReadOnly )
- checkCheckBox( _file , "*" , RecordChanges )
- else
- warnlog( "Could not return to Security Tabpage" )
- endif
else
warnlog( "Security Tabpage not available" )
endif
@@ -110,6 +103,9 @@ sub changeSecurityPage( _file as string )
printlog( " * Changing current settings according to the reference list." )
printlog( " * Using settings from file: " & _file )
+
+ kontext "TabSecurity"
+ if ( TabSecurity.exists() ) then
Options.click
Kontext "TabSecurityOptionsAndWarnings"
@@ -120,12 +116,12 @@ sub changeSecurityPage( _file as string )
setCheckBox( _file , "*" , RemovePersonalInformationOnSaving )
setCheckBox( _file , "*" , RecommendPasswordProtectionOnSaving )
TabSecurityOptionsAndWarnings.cancel
- Kontext "TabSecurity"
- setCheckBox( _file , "*" , RecommendToOpenDocumentReadOnly )
- setCheckBox( _file , "*" , RecordChanges )
Kontext "OptionenDLG"
OptionenDLG.OK
+ else
+ warnlog( "Security Tabpage not available" )
+ endif
sleep(2)
call exitRestartTheOffice()