Skip to content

Commit fb4089b

Browse files
committed
fix: added additional check for progress-text
1 parent 984e650 commit fb4089b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

deepl/deepl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ async def __translate(self, script: str) -> str:
189189

190190
# Wait for translation to complete (check that progress text is empty)
191191
try:
192+
await page.wait_for_selector(selector="#progress-text", timeout=self.timeout)
192193
await page.wait_for_function(
193194
"""
194195
() => {

0 commit comments

Comments
 (0)