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