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 authored and James Valleroy committed 2020-06-20 10:42:51 -04:00
1 parent 61d36e43fe
commit 1db2f4982a
1 file changed
+1
@@ -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'))