summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uitest/loginterpreter.py4
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 " + \