File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ def wait_for_downloads(driver):
114114 """Wait for all downloads to finish.
115115 *Important*: This method overwrites the current page with the downloads page.
116116 """
117- if not driver .current_url .startswith ("chrome ://downloads" ):
118- driver .get ("chrome ://downloads/" )
117+ if not driver .current_url .startswith ("edge ://downloads" ):
118+ driver .get ("edge ://downloads/" )
119119 return driver .execute_script ("""
120- var items = document.querySelector(' downloads-manager' )
121- .shadowRoot.getElementById('downloadsList').items ;
122- if (items.every(e => e.state === "COMPLETE" ))
123- return items.map(e => e.fileUrl || e.file_url) ;
120+ var items = Array.from( document.querySelector(". downloads-list" )
121+ .querySelectorAll('[role="listitem"]')) ;
122+ if(items.every(e => e.querySelector('[role="progressbar"]') == null ))
123+ return true ;
124124 """ )
You can’t perform that action at this time.
0 commit comments