cool#10630 lok doc sign: fix Impress sign line when picking a certificate
[LibreOffice.git] / sw / qa / uitest / writer_tests5 / titlePage.py
blob3d539e03b24dc5bfc988610e22b79582f1d629cb
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/.
9 from uitest.framework import UITestCase
10 #uitest sw / Title Page dialog
12 class titlePage(UITestCase):
13 def test_title_page(self):
14 with self.ui_test.create_doc_in_start_center("writer") as document:
15 #dialog Title Page
16 with self.ui_test.execute_dialog_through_command(".uno:TitlePageDialog") as xDialog:
17 #select new Pages; nr of pages =2 (click UP), save; verify pageCount = 3
18 newPages = xDialog.getChild("RB_INSERT_NEW_PAGES")
19 newPages.executeAction("CLICK", tuple())
20 xpageCount = xDialog.getChild("NF_PAGE_COUNT")
21 xpageCount.executeAction("UP", tuple())
22 self.assertEqual(document.CurrentController.PageCount, 3)
24 # check cancel button
25 with self.ui_test.execute_dialog_through_command(".uno:TitlePageDialog", close_button="cancel"):
26 pass
27 self.assertEqual(document.CurrentController.PageCount, 3)
30 # vim: set shiftwidth=4 softtabstop=4 expandtab: