From cc8a81440f4bfa17cf3e12a87cf9f4e6f0de5bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:18:01 +0800 Subject: [PATCH] focus --- LunaTranslator/LunaTranslator/translator/dev_qwen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/translator/dev_qwen.py b/LunaTranslator/LunaTranslator/translator/dev_qwen.py index 51a209ad..54eb3a59 100644 --- a/LunaTranslator/LunaTranslator/translator/dev_qwen.py +++ b/LunaTranslator/LunaTranslator/translator/dev_qwen.py @@ -52,7 +52,7 @@ class TS(basetransdev): self.srclang, self.tgtlang ) content = prompt + content - self.Runtime_evaluate('document.getElementsByTagName("textarea")[0].click()') + self.Runtime_evaluate('document.getElementsByTagName("textarea")[0].focus()') self.send_keys(content) self.Runtime_evaluate( r"""document.querySelector("#tongyiPageLayout > div.sc-fQpRED.jsoEZg > div > div.sc-hNGPaV.erDcgy.pageContentWrap--AovzQ5wq > div > div.inputField--PE5FhWzd > div > div.chatInput--eJzBH8LP > div.operateBtn--zFx6rSR0").click()"""