mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
bing
This commit is contained in:
parent
adaa5e8d9c
commit
9335e8be40
@ -8,13 +8,9 @@ class TS(basetransdev):
|
|||||||
return ".bing.com/translator/" in url
|
return ".bing.com/translator/" in url
|
||||||
|
|
||||||
def translate(self, content):
|
def translate(self, content):
|
||||||
self.Runtime_evaluate(
|
self.Runtime_evaluate('document.getElementById("tta_clear").click();')
|
||||||
"""document.getElementById('tta_clear').click();document.getElementById('tta_input_ta').value=`{}`;
|
self.Runtime_evaluate('document.querySelector("#tta_input_ta").click();')
|
||||||
document.getElementById('tta_input_ta').click();
|
self.send_keys(content)
|
||||||
""".format(
|
|
||||||
content
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return self.wait_for_result(
|
return self.wait_for_result(
|
||||||
"document.getElementById('tta_output_ta').value", " ..."
|
"document.getElementById('tta_output_ta').value", " ..."
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user