diff options
author | Saurav Chirania <saurav.chir@gmail.com> | 2018-07-03 21:37:01 +0530 |
---|---|---|
committer | Saurav Chirania <saurav.chir@gmail.com> | 2018-07-06 19:43:00 +0200 |
commit | 4914c03245983f913ecdd2a5d9682a05bca1fea7 (patch) | |
tree | a6f62a60a4bbd3003488724ca88dd8ac413f7a89 /uitest | |
parent | 6fb449d127d1da165f610c4c99c2c7d9c5afbb97 (diff) |
uitest interpreter: handle when parent is empty string
Change-Id: I439e2679ce46872f34e095b7f05fa19d404d2c00
Reviewed-on: https://gerrit.libreoffice.org/56887
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/loginterpreter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uitest/loginterpreter.py b/uitest/loginterpreter.py index ccc805056a7b..93f391edbfa0 100644 --- a/uitest/loginterpreter.py +++ b/uitest/loginterpreter.py @@ -118,7 +118,9 @@ def get_test_line_from_one_log_line(log_line): action_dict["Id"][:-4] +"\")\n MainWindow = " + \ "self.xUITest.getTopFocusWindow()\n" return test_line - elif (parent != ""): + else: + if (parent == ""): + parent = "MainWindow" test_line += \ action_dict["Id"] + " = " + parent + ".getChild(\"" + \ action_dict["Id"] + "\")\n " + \ |