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

choose_languages error again #23

Closed
alexmaehon opened this issue Oct 19, 2022 · 4 comments
Closed

choose_languages error again #23

alexmaehon opened this issue Oct 19, 2022 · 4 comments

Comments

@alexmaehon
Copy link

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pywebio/session/threadbased.py", line 86, in main_task
target()
File "/content/app.py", line 1551, in main
delete_old=True,
File "/content/app.py", line 266, in translate
wrap_limit,
File "/content/app.py", line 134, in translate
self.choose_languages(lang_from, lang_to)
File "/content/app.py", line 117, in choose_languages
f"//button[@DL-test='translator-lang-option-{lang_from['lang'].lower()}'] | //button[text()='{lang_from['description']}']",
File "/content/app.py", line 51, in init
WebDriverWait(driver, 60).until(lambda driver: find_element(*locator))
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/support/wait.py", line 89, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
#0 0x55bfb3b0b1a3
#1 0x55bfb38d7ac3
#2 0x55bfb390f869
#3 0x55bfb390fa41
#4 0x55bfb39436e7
#5 0x55bfb392d10d
#6 0x55bfb39413cc
#7 0x55bfb392d443
#8 0x55bfb390348b
#9 0x55bfb3904975
#10 0x55bfb3b872a0
#11 0x55bfb3b4281a
#12 0x55bfb3b4234a
#13 0x55bfb3b42e75
#14 0x55bfb3b8314b
#15 0x55bfb3b431de
#16 0x55bfb3b24c23
#17 0x55bfb3b4d6b8
#18 0x55bfb3b4d852
#19 0x55bfb3b66b60
#20 0x7fba1a32b6db

@alexmaehon
Copy link
Author

In another machine:

Traceback (most recent call last):
File "/home/babel/.local/lib/python3.8/site-packages/pywebio/session/threadbased.py", line 86, in main_task
target()
File "app.py", line 1403, in main
translate(
File "app.py", line 260, in translate
subs = translator.translate(
File "app.py", line 132, in translate
self.choose_languages(lang_from, lang_to)
File "app.py", line 112, in choose_languages
Button(
self.driver,
"XPATH",
f"//button[@DL-test='translator-lang-option-{lang_from['lang'].lower()}'] | //button[text()='{>
).click()

File "app.py", line 50, in init
WebDriverWait(driver, 60).until(lambda driver: find_element(*locator))
File "/home/babel/.local/lib/python3.8/site-packages/selenium/webdriver/support/wait.py", line 89, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
#0 0x55b33b5c2bb3
#1 0x55b33b3df21a
#2 0x55b33b41671a
#3 0x55b33b4168f1
#4 0x55b33b44ee24
#5 0x55b33b43573d
#6 0x55b33b44cb25
#7 0x55b33b435603
#8 0x55b33b4097a5
#9 0x55b33b40a941
#10 0x55b33b607186
#11 0x55b33b609714
#12 0x55b33b609e56
#13 0x55b33b5f0f4e
#14 0x55b33b60a49c
#15 0x55b33b5e5782
#16 0x55b33b624f58
#17 0x55b33b6250e9
#18 0x55b33b63ef08
#19 0x7fac4705a609

@alexmaehon
Copy link
Author

Button(
self.driver,
"XPATH",
f"//button[@DL-test='translator-lang-option-{lang_from['lang'].lower()}'] | //button[text()='{>
).click()

@alexmaehon
Copy link
Author

some work on other file

@sinedie
Copy link
Owner

sinedie commented Oct 21, 2022

@alexmaehon I guess you manage to make it work... If not, reopen and tell what the problem was XD.

Pd: I know I've been a little too far from this repo, but im comming back

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

No branches or pull requests

2 participants