From 0c65df226d862288d06dfd687cf2d7ec00e1e573 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 4 Sep 2024 17:44:23 -0300 Subject: [PATCH] =?UTF-8?q?altera=C3=A7=C3=A3o=20da=20fun=C3=A7=C3=A3o=20w?= =?UTF-8?q?ait=5Ffor=5Fdownload()=20em=20botcity>web>bot.py>wit=5Ffor=5Fdo?= =?UTF-8?q?wnloads?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- botcity/web/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botcity/web/bot.py b/botcity/web/bot.py index 6410b45..1770381 100644 --- a/botcity/web/bot.py +++ b/botcity/web/bot.py @@ -1215,7 +1215,7 @@ def wait_for_downloads(self, timeout: int = 120000): Args: timeout (int, optional): Timeout in millis. Defaults to 120000. """ - if self.browser in [Browser.CHROME, Browser.UNDETECTED_CHROME, Browser.EDGE] and self.headless: + if self.browser in [Browser.CHROME, Browser.EDGE]: start_time = time.time() while True: elapsed_time = (time.time() - start_time) * 1000