mldonkey: tests: functional: Wait for frame to load properly

Before counting the number of downloads.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-05-28 14:26:07 -07:00 committed by James Valleroy
parent 61d36e43fe
commit 1db2f4982a
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -58,5 +58,6 @@ def _get_number_of_ed2k_files(browser):
'//tr//td[contains(text(), "Transfers")]').click()
with browser.get_iframe('output') as output_frame:
functional.eventually(output_frame.find_by_css, ['.downloaded'])
return len(output_frame.find_by_css('.dl-1')) + len(
output_frame.find_by_css('.dl-2'))