
Log:
<...>
INFO ⮕ _expand_toggle_blocks()
CRITICAL timeout while expanding block - manually check if it's expanded in the snapshot
<...>
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\temp\notionSnapshot\notionsnapshot_main.py", line 512, in
Scraper().run()
~~~~~~~~~~~~~^^
File "C:\temp\notionSnapshot\notionsnapshot_main.py", line 183, in run
Scraper.expand_toggle_blocks()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\temp\notionSnapshot\notionsnapshot\logger.py", line 63, in wrapper
result = func(*args, **kwargs)
File "C:\temp\notionSnapshot\notionsnapshot_main.py", line 277, in _expand_toggle_blocks
Scraper.expand_toggle_blocks(expanded_toggle_blocks)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\temp\notionSnapshot\notionsnapshot\logger.py", line 63, in wrapper
result = func(*args, **kwargs)
File "C:\temp\notionSnapshot\notionsnapshot_main.py", line 259, in _expand_toggle_blocks
toggle_block_button = block.find_element(By.CSS_SELECTOR, "div[role=button]")
File "C:\Users\Al\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\selenium\webdriver\remote\webelement.py", line 417, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["value"]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Al\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\selenium\webdriver\remote\webelement.py", line 395, in _execute
return self._parent.execute(command, params)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\Al\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\selenium\webdriver\remote\webdriver.py", line 354, in execute
self.error_handler.check_response(response)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\Al\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: stale element not found in the current frame
(Session info: chrome=135.0.7049.115); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
Stacktrace:
GetHandleVerifier [0x00FDD363+60275]
GetHandleVerifier [0x00FDD3A4+60340]
(No symbol) [0x00E106F3]
(No symbol) [0x00E16E47]
(No symbol) [0x00E1913A]
(No symbol) [0x00E191B7]
(No symbol) [0x00E57F24]
(No symbol) [0x00E58A2B]
(No symbol) [0x00E4DDD1]
(No symbol) [0x00E7D0D4]
(No symbol) [0x00E4DCF4]
(No symbol) [0x00E7D304]
(No symbol) [0x00E9E6EB]
(No symbol) [0x00E7CE86]
(No symbol) [0x00E4C623]
(No symbol) [0x00E4D474]
GetHandleVerifier [0x01228FE3+2467827]
GetHandleVerifier [0x012245E6+2448886]
GetHandleVerifier [0x0123F80C+2560028]
GetHandleVerifier [0x00FF3DF5+153093]
GetHandleVerifier [0x00FFA3BD+179149]
GetHandleVerifier [0x00FE4BB8+91080]
GetHandleVerifier [0x00FE4D60+91504]
GetHandleVerifier [0x00FCFA10+4640]
BaseThreadInitThunk [0x76B47BA9+25]
RtlInitializeExceptionChain [0x77D2C2EB+107]
RtlClearBits [0x77D2C26F+191]