Skip to content

Commit

Permalink
Merge pull request #39 from KryptoST/patch-1
Browse files Browse the repository at this point in the history
Update deepl_scrap.py
  • Loading branch information
sinedie authored Apr 3, 2023
2 parents bb2ecd5 + 51a71f1 commit c6e9c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtranslator/translators/deepl_scrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _set_language(self, language: str, dropdown_class: str) -> None:
Button(self.driver, "CLASS_NAME", dropdown_class).click()

# Get the language button to click based on is dl-test property or the text in the button
xpath_by_property = f"//button[@dl-test='translator-lang-option-{language}']"
xpath_by_property = f"//button[@data-testid='translator-lang-option-{language}']"
x_path_by_text = f"//button[text()='{self.languages[language]}']"
xpath = f"{xpath_by_property} | {x_path_by_text}"

Expand Down

0 comments on commit c6e9c4e

Please sign in to comment.