Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sw / qa / uitest / writer_tests / tdf81457.py
blob3b7108866ee3e4266054562b500d3985b128468b
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 from uitest.framework import UITestCase
11 from libreoffice.uno.propertyvalue import mkPropertyValues
12 from uitest.path import get_srcdir_url
13 from uitest.uihelper.common import get_state_as_dict
14 import time
15 from uitest.debug import sleep
16 from uitest.uihelper.common import select_pos
18 def get_url_for_data_file(file_name):
19 return get_srcdir_url() + "/sw/qa/uitest/writer_tests/data/" + file_name
21 class tdf81457(UITestCase):
23 #tdf 81457
24 def test_open_documentProperties_tdf81457(self):
25 writer_doc = self.ui_test.load_file(get_url_for_data_file("tdf81457.odt"))
26 self.ui_test.execute_dialog_through_command(".uno:SetDocumentProperties")
27 xDialog = self.xUITest.getTopFocusWindow()
28 xTabs = xDialog.getChild("tabcontrol")
29 select_pos(xTabs, "2") #tab Custom properties
30 xOkBtn = xDialog.getChild("ok")
31 xOkBtn.executeAction("CLICK", tuple())
33 self.ui_test.close_doc()
35 # vim: set shiftwidth=4 softtabstop=4 expandtab: