B
B
boda10062021-08-30 14:27:52
Python
boda1006, 2021-08-30 14:27:52

How to handle selenium.common.exceptions.StaleElementReferenceException error?

Hello, I'm making a parser on selenuium and encountered the error "selenium.common.exceptions.StaleElementReferenceException" tell me how to handle it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stefan, 2021-08-30
@boda1006

try:
    # Тут код, из котрого ждем ошибку
except StaleElementReferenceException:
    # Тут обрабатываем ошибку

Do you even know what this is called error handling, is it really so vpadla to open the very first link from Google?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question