В общем тестирую свой чат, каждые n секунд скрипт проверяет страницу на наличие новых сообщений, работает 7-10 циклов и вылетает с ошибкой. Помогите Товарищи... без вас не разобраться
Traceback (most recent call last):
File "/home/user/Python_script/***/***_ver1.py", line 93, in <module>
main()
File "/home/user/Python_script/***/***_ver1.py", line 82, in main
newtexts = getText_from_iSinka()
File "/home/user/Python_script/***/***_ver1.py", line 48, in getText_from_iSinka
texts = [text.text for text in texts_all]
File "/home/user/Python_script/***/***_ver1.py", line 48, in <listcomp>
texts = [text.text for text in texts_all]
File "/home/user/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webelement.py", line 76, in text
return self._execute(Command.GET_ELEMENT_TEXT)['value']
File "/home/user/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webelement.py", line 501, in _execute
return self._parent.execute(command, params)
File "/home/user/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute
self.error_handler.check_response(response)
File "/home/user/.local/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: The element reference of <div class="message_block_text"> stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
[Finished in 138.6s with exit code 1]