Commit 0bb911f6 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Make selectFromFileDialog() more stable



Change-Id: Ia454bc3174fa48602e181f4848944c0299a95517
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent c6a8f138
......@@ -242,10 +242,11 @@ def selectFromFileDialog(fileName, waitForFile=False):
waitForObject("{name='QFileDialog' type='QFileDialog' visible='1'}")
pathLine = waitForObject("{name='fileNameEdit' type='QLineEdit' visible='1'}")
replaceEditorContent(pathLine, pName)
clickButton(findObject("{text='Open' type='QPushButton'}"))
clickButton(waitForObject("{text='Open' type='QPushButton'}"))
waitFor("str(pathLine.text)==''")
snooze(1)
replaceEditorContent(pathLine, fName)
clickButton(findObject("{text='Open' type='QPushButton'}"))
clickButton(waitForObject("{text='Open' type='QPushButton'}"))
if waitForFile:
fileCombo = waitForObject(":Qt Creator_FilenameQComboBox")
if not waitFor("str(fileCombo.currentText) in fileName", 5000):
......
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