mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 00:43:59 +08:00
issues/609
This commit is contained in:
parent
652246175c
commit
eeb4058dbe
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user