Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Deepl updated theirs webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedie committed Jul 20, 2022
1 parent 18f70ee commit 2356aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srt_deepl/deepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def choose_languages(self, lang_from, lang_to):
"lmt__language_select--target",
).click()

input_lang_button = Button(
Button(
self.driver,
"XPATH",
f"//button[@dl-test='translator-lang-option-{lang_to['lang'].lower()}-{lang_to['lang'].upper()}'] | //button[text()='{lang_to['description']}']",
f"//button[@dl-test='translator-lang-option-{lang_to['lang'].lower()}'] | //button[text()='{lang_to['description']}']",
).click()

def translate(self, file_path, lang_from, lang_to, wrap_limit):
Expand Down

0 comments on commit 2356aa7

Please sign in to comment.