summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 01:13:34 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 03:01:06 +0000
commitaaea953b6e43ca5672b104308042419899a52c72 (patch)
treebe3edfaa0faa397e5fb8760f499787a80bab0b92 /uitest
parentb3ebb8942115ef0d3fa3840f2056eac9a3bbe23a (diff)
uitest: add demo showing how to use auto filter popup
Change-Id: Id42c2856e4eee03dae374ea36d6dcba16419c70e Reviewed-on: https://gerrit.libreoffice.org/35700 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/calc_tests/autofilter.py27
1 files changed, 11 insertions, 16 deletions
diff --git a/uitest/calc_tests/autofilter.py b/uitest/calc_tests/autofilter.py
index fc5c1c897ef9..431043b02f03 100644
--- a/uitest/calc_tests/autofilter.py
+++ b/uitest/calc_tests/autofilter.py
@@ -31,23 +31,18 @@ class AutofilterTest(UITestCase):
doc = self.ui_test.load_file(get_url_for_data_file("autofilter.ods"))
xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window")
- xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "1", "ROW": "1"}))
+ xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "0", "ROW": "0"}))
+
+ xFloatWindow = self.xUITest.getFloatWindow()
+ xCheckListMenu = xFloatWindow.getChild("check_list_menu")
+
+ xTreeList = xCheckListMenu.getChild("check_list_box")
+ xFirstEntry = xTreeList.getChild("0")
+
+ xFirstEntry.executeAction("CLICK", tuple())
- time.sleep(3)
-
- print(xGridWin.getChildren())
- xCheckListMenu = xGridWin.getChild("check_list_menu")
- print("temp")
- print(xCheckListMenu)
- print(dir(xCheckListMenu))
- print("temp")
-
- json_string = xCheckListMenu.getHierarchy()
- print(json_string)
- json_content = json.loads(json_string)
- print(json_content)
- print(json.dumps(json_content, indent=4))
- time.sleep(10)
+ xOkBtn = xFloatWindow.getChild("ok")
+ xOkBtn.executeAction("CLICK", tuple())
self.ui_test.close_doc()