Skip to content
Snippets Groups Projects
Commit 94987b2f authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Another snooze() for selectFromFileDialog()


Change-Id: Ibc24c27a8e69ba7eb039618ea416b2e84da6e617
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 88e72792
No related branches found
No related tags found
No related merge requests found
...@@ -276,6 +276,7 @@ def selectFromFileDialog(fileName, waitForFile=False): ...@@ -276,6 +276,7 @@ def selectFromFileDialog(fileName, waitForFile=False):
pName = os.path.dirname(os.path.abspath(fileName)) + os.sep pName = os.path.dirname(os.path.abspath(fileName)) + os.sep
waitForObject("{name='QFileDialog' type='QFileDialog' visible='1'}") waitForObject("{name='QFileDialog' type='QFileDialog' visible='1'}")
pathLine = waitForObject("{name='fileNameEdit' type='QLineEdit' visible='1'}") pathLine = waitForObject("{name='fileNameEdit' type='QLineEdit' visible='1'}")
snooze(1)
replaceEditorContent(pathLine, pName) replaceEditorContent(pathLine, pName)
clickButton(waitForObject("{text='Open' type='QPushButton'}")) clickButton(waitForObject("{text='Open' type='QPushButton'}"))
waitFor("str(pathLine.text)==''") waitFor("str(pathLine.text)==''")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment