From 3c8fa9fb5bbd7c1293f7885b529a95063dbf7252 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 21 May 2016 01:50:13 +0200 Subject: uitest: the demo is supposed to show how to goto the page start Change-Id: I61d2a74b50be2ab8b5077344ecd41cfa0cba2e64 --- uitest/writer_tests/start.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uitest/writer_tests/start.py b/uitest/writer_tests/start.py index a9b722adc4cb..a0fe7d2b96aa 100644 --- a/uitest/writer_tests/start.py +++ b/uitest/writer_tests/start.py @@ -75,6 +75,8 @@ def goto_first_page(xContext): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) state = get_state_as_dict(xWriterEdit) + xWriterEdit.executeAction("GOTO", mkPropertyValues({"PAGE": "1"})) + print(state) time.sleep(2) ui_test.close_doc() -- cgit