Skip to content

Commit 5453748

Browse files
authored
Merge pull request #57 from lf2a/wait-for-download
FIX: Added wait after going to downloads page
2 parents b62372c + 5900ecd commit 5453748

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

botcity/web/browsers/edge.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import os
44
import tempfile
5+
import time
56
from typing import Dict
67

78
from msedge.selenium_tools import Edge, EdgeOptions # noqa: F401, F403
@@ -124,6 +125,7 @@ def wait_for_downloads(driver):
124125
"""
125126
if not driver.current_url.startswith("edge://downloads"):
126127
driver.get("edge://downloads/")
128+
time.sleep(1)
127129
return driver.execute_script("""
128130
var items = Array.from(document.querySelector(".downloads-list")
129131
.querySelectorAll('[role="listitem"]'));

docs-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pygments
22
mkdocs
3-
mkdocstrings
3+
mkdocstrings[python-legacy]>=0.18
44
mkdocs-material
5-
livereload
5+
livereload

0 commit comments

Comments
 (0)