My error message from my code is not displaying.
Code:
https://pastebin.com/QSdENqew
Traceback (most recent call last):
File "c:/Users/slee5/Desktop/Introduction To Software Testing Or Software QA/PythonSeleniumDemo.py", line 37, in <module>
all_text = body.text
File "C:\Users\slee5\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webelement.py", line
76, in text
return self._execute(Command.GET_ELEMENT_TEXT)['value']
File "C:\Users\slee5\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webelement.py", line
633, in _execute
return self._parent.execute(command, params)
File "C:\Users\slee5\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\slee5\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
(Session info: chrome=83.0.4103.61)