mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
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:
parent
61d36e43fe
commit
1db2f4982a
@ -58,5 +58,6 @@ def _get_number_of_ed2k_files(browser):
|
|||||||
'//tr//td[contains(text(), "Transfers")]').click()
|
'//tr//td[contains(text(), "Transfers")]').click()
|
||||||
|
|
||||||
with browser.get_iframe('output') as output_frame:
|
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(
|
return len(output_frame.find_by_css('.dl-1')) + len(
|
||||||
output_frame.find_by_css('.dl-2'))
|
output_frame.find_by_css('.dl-2'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user