| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
from uitest.framework import UITestCase |
| 11 |
from libreoffice.uno.propertyvalue import mkPropertyValues |
| 12 |
from uitest.uihelper.common import get_state_as_dict |
| 13 |
from uitest.uihelper.common import select_pos |
| 14 |
|
| 15 |
class tdf115853(UITestCase): |
| 16 |
|
| 17 |
def test_tdf115853(self): |
| 18 |
with self.ui_test.create_doc_in_start_center("writer"): |
| 19 |
with self.ui_test.execute_dialog_through_command(".uno:SetDocumentProperties") as xDialog: |
| 20 |
|
| 21 |
xTabs = xDialog.getChild("tabcontrol") |
| 22 |
|
| 23 |
select_pos(xTabs, "2") |
| 24 |
|
| 25 |
xAddBtn = xDialog.getChild("add") |
| 26 |
xAddBtn.executeAction("CLICK", tuple()) |
| 27 |
|
| 28 |
xNameBox1 = xDialog.getChild("namebox1") |
| 29 |
xNameBox1.executeAction("TYPE", mkPropertyValues({"TEXT":"Text"})) |
| 30 |
|
| 31 |
xAddBtn = xDialog.getChild("add") |
| 32 |
xAddBtn.executeAction("CLICK", tuple()) |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
self.assertEqual("Text", get_state_as_dict(xNameBox1)['Text']) |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|