diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index e10d1b3012f89907bbc605985c816e21d4263cbb..d049674a33721e845c098208521e4d9ee56603f6 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -276,6 +276,7 @@ def selectFromFileDialog(fileName, waitForFile=False): pName = os.path.dirname(os.path.abspath(fileName)) + os.sep waitForObject("{name='QFileDialog' type='QFileDialog' visible='1'}") pathLine = waitForObject("{name='fileNameEdit' type='QLineEdit' visible='1'}") + snooze(1) replaceEditorContent(pathLine, pName) clickButton(waitForObject("{text='Open' type='QPushButton'}")) waitFor("str(pathLine.text)==''")