sinedie/SRTranslator

Selenium couldn't find the element

Closed this issue · 7 comments

cybaj commented

here is the error message.

Timed out trying to get element (CLASS_NAME = lmt__source_textarea)

related code.

You can just run it again a few times until it works - I just translated 48min of en subtitles to zh after getting this error 3 times. this is likely due to differences in rendering time for the elements on the page and the source textarea not rendering in by the time selenium looks for it.

I get this error very often. Sometimes you have to start the translation 5 times until it works without problems.

Gonna check this out this week and come back with a solution

Last commit (already on PyPi), may fix this. Feel free to close the issue if it does.

I had the same case.

Last commit (already on PyPi), may fix this. Feel free to close the issue if it does.

After the update, a new error appeared.
Timed out trying to get element (CLASS_NAME = lmt__language_select--source)

Updated again... css selectors changed by xpath...