🐛 Fix random translation failures and stuck target language (closes #2) #8

Closed
jiaofangkai926 wants to merge 1 commit from jiaofangkai926/deepl-scraper:fix/issue-2-reliable-translation into master

1 commit

Author SHA1 Message Date
jiaofangkai
6e9306fedf 🐛 Retry transient translation failures and verify language switching (fixes #2)
Random failures in the issue report were transient UI automation races:

* wait for the source textarea to be visible before typing
* verify the language panel really switched and re-open it when a click is ignored
* retry once on a fresh page for transient selector/timeout errors
* fail fast with LANGUAGE_SWITCH_FAILED / TRANSLATION_RESULT_UNAVAILABLE
2026-10-20 14:52:41 +00:00