How to address “WebDriverException: Message: TypeError: can't access dead object” and wait for a frame to be available using Selenium and Python

前端 未结 2 1980
无人共我
无人共我 2020-12-01 23:01

I have a rather complex webpage setup I need to test, containing nested frames.

In the actual problem the selenium code is loading new webpage contents containing a

2条回答
  •  抹茶落季
    2020-12-01 23:27

    This error message...

    WebDriverException: Message: TypeError: can't access dead object
    

    ...implies that there was an error while switching between .

    Some more information in terms of:

    • The relevant HTML
    • Presence of Frameset
    • Presence of Frames
    • Hierarchy of Nested Frames
    • Sequence of Frame Loading
    • Presence of JavaScript and AJAX Calls within the respective