Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation to English fails #1

Closed
Aquc opened this issue Dec 30, 2022 · 1 comment · Fixed by #2
Closed

Translation to English fails #1

Aquc opened this issue Dec 30, 2022 · 1 comment · Fixed by #2
Assignees

Comments

@Aquc
Copy link

Aquc commented Dec 30, 2022

When translating to English it fails because unlike in Detect language list where it's called "en" there are 2 elements - en-US and en-GB which are absent from "the languages = dict".

DEBUG:urllib3.connectionpool:http://localhost:55167 "POST /session/49eba344-9f27-4f9b-9666-c90355712edb/element HTTP/1.1" 404 471
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=404 | data={"value":{"error":"no such element","message":"Unable to locate element: //button[@dl-test='translator-lang-option-en'] | //button[text()='English']","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5\nNoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:394:5\nelement.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16\n"}} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '471', 'date': 'Fri, 30 Dec 2022 06:50:05 GMT'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
@durandarthur
Copy link

to users using the CLI: don't forget to use either en-US or en-GB for the output parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants