You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just encountered this stack trace (version 0.7.5):
File "/.../lib/python3.6/site-packages/splinter/driver/webdriver/__init__.py", line 319, in is_text_not_present
self.driver.find_element_by_tag_name('body').text.index(text)
File "/.../lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 73, in text
return self._execute(Command.GET_ELEMENT_TEXT)['value']
File "/.../lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 491, in _execute
return self._parent.execute(command, params)
File "/.../lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 238, in execute
self.error_handler.check_response(response)
File "/.../lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 193, 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=57.0.2987.133)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Mac OS X 10.11.6 x86_64)
It seems that the body went away after the call to find_element_by_tag_name('body') but before text could be accessed from the result. The possibility of this makes sense to me based on the application that I'm testing.
I think the solution is to handle StaleElementReferenceException the same way as NoSuchElementException.
The text was updated successfully, but these errors were encountered:
I just encountered this stack trace (version 0.7.5):
It seems that the body went away after the call to
find_element_by_tag_name('body')
but beforetext
could be accessed from the result. The possibility of this makes sense to me based on the application that I'm testing.I think the solution is to handle
StaleElementReferenceException
the same way asNoSuchElementException
.The text was updated successfully, but these errors were encountered: