diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-19 20:46:58 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-17 21:10:16 +0200 |
commit | db09d9b5016df7febb09c6be596b60b08c10cc39 (patch) | |
tree | 5495a4b3ed62871152740b780fbb5f40f034e84b | |
parent | 3a72eb8e63dfdcbdcc77d2e3c04d088c9dc470d6 (diff) |
uitest: add demo showing how to deselect an UI object
Change-Id: Ie755dd93296de4031abe36833872c58032271d22
-rw-r--r-- | uitest/calc_tests/create_chart.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/uitest/calc_tests/create_chart.py b/uitest/calc_tests/create_chart.py index 7bb331cb1587..30f0aa7444fa 100644 --- a/uitest/calc_tests/create_chart.py +++ b/uitest/calc_tests/create_chart.py @@ -124,4 +124,30 @@ def create_from_second_page(xContext): ui_test.close_doc() +def deselect_chart(xContext): + xUITest = xContext.ServiceManager.createInstanceWithContext( + "org.libreoffice.uitest.UITest", xContext) + + ui_test = UITest(xUITest, xContext) + + ui_test.create_doc_in_start_center("calc") + + fill_spreadsheet(xUITest) + + xCalcDoc = xUITest.getTopFocusWindow() + xGridWindow = xCalcDoc.getChild("grid_window") + + ui_test.execute_dialog_through_command(".uno:InsertObjectChart") + + xChartDlg = xUITest.getTopFocusWindow() + + xNextBtn = xChartDlg.getChild("finish") + xNextBtn.executeAction("CLICK", tuple()) + + xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""})) + + time.sleep(2) + + ui_test.close_doc() + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ |