Commit 33162e32 authored by Robert Loehning's avatar Robert Loehning

Squish: Add error handling to tst_HELP06

Change-Id: I448391f10d78b528ff321ef8974ee1c94bcbdc84
Reviewed-by: Christian Stenger's avatarChristian Stenger <>
parent 2ce4bbc4
......@@ -53,11 +53,18 @@ def main():
manualQModelIndex = getQModelIndexStr("text?='Qt Creator Manual *'",
":Qt Creator_QHelpContentWidget")
doubleClick(waitForObject(manualQModelIndex), 5, 5, 0, Qt.LeftButton)
manualQMIObj = waitForObject(manualQModelIndex)
doubleClick(manualQMIObj, 5, 5, 0, Qt.LeftButton)
if not waitFor("not manualQMIObj.collapsed", 2000):
test.warning("It takes more than two seconds to expand the help content tree.")
mouseClick(waitForObject(getQModelIndexStr("text='Building and Running an Example'",
manualQModelIndex)), 5, 5, 0, Qt.LeftButton)
helpSelector = waitForObject(":Qt Creator_HelpSelector_QComboBox")
waitFor("str(helpSelector.currentText).startswith('Building and Running an Example')", 10000)
pageOpened = "str(helpSelector.currentText).startswith('Building and Running an Example')"
if not waitFor(pageOpened, 10000):
test.fatal("Help page is not opened after ten seconds. Giving up.")
invokeMenuItem("File", "Exit")
# open bookmarks window
clickButton(waitForObject(":Qt Creator.Add Bookmark_QToolButton"))
clickButton(waitForObject(":Add Bookmark.ExpandBookmarksList_QToolButton"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment