From eeb4058dbe93a6b0831ac7c7ed72396e0cf72324 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: Fri, 29 Mar 2024 02:42:25 +0800 Subject: [PATCH] issues/609 --- LunaTranslator/LunaTranslator/translator/google_dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/translator/google_dev.py b/LunaTranslator/LunaTranslator/translator/google_dev.py index 024f7b99..31fefeb9 100644 --- a/LunaTranslator/LunaTranslator/translator/google_dev.py +++ b/LunaTranslator/LunaTranslator/translator/google_dev.py @@ -13,5 +13,5 @@ class TS(basetransdev): self.Page_navigate('https://translate.google.com/?sl={}&tl={}'.format(self.srclang,self.tgtlang)) self.lastlang=(self.srclang,self.tgtlang) self.Runtime_evaluate('textarea=document.querySelector("textarea");textarea.value="";event = new Event("input", {{bubbles: true, cancelable: true }});textarea.dispatchEvent(event);textarea=document.querySelector("textarea");textarea.value=`{}`;event = new Event("input", {{bubbles: true, cancelable: true }});textarea.dispatchEvent(event);'.format(content)) - return self.wait_for_result('document.querySelector("#yDmH0d > c-wiz > div > div.ToWKne > c-wiz > div.OlSOob > c-wiz > div.ccvoYb.EjH7wc > div.AxqVh > div.OPPzxe > c-wiz.sciAJc > div > div.usGWQd > div > div.lRu31").innerText') + return self.wait_for_result('document.querySelector("#yDmH0d > c-wiz > div > div.ToWKne > c-wiz > div.OlSOob > c-wiz > div.ccvoYb > div.AxqVh > div.OPPzxe > c-wiz.sciAJc > div > div.usGWQd > div > div.lRu31").innerText') \ No newline at end of file