Make waiting for download prompt more robust

This commit is contained in:
Florian Bruhin 2017-03-29 08:27:38 +02:00
parent e28eabe5eb
commit edb197b028

View File

@ -68,6 +68,8 @@ def wait_for_download_finished_name(quteproc, name):
def wait_for_download_prompt(tmpdir, quteproc, path):
full_path = path.replace('(tmpdir)', str(tmpdir)).replace('/', os.sep)
quteproc.wait_for(message=PROMPT_MSG.format(full_path))
quteproc.wait_for(message="Entering mode KeyMode.prompt "
"(reason: question asked)")
@bdd.when("I download an SSL page")