Browsing context has been discarded using GeckoDriver Firefox through Selenium

前端 未结 1 511
无人共我
无人共我 2020-12-11 22:31

I didn\'t make any changes to my python selenium program and it worked fine 3 days ago. Now when i try to use it i get:

Browsing context has been discarded Failed t

1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 23:15

    This error message...

    Browsing context has been discarded
    .
    Failed to decode response from marionette
    

    ...implies that the communication between GeckoDriver and Marionette was broken.

    Some more information regarding the binary version interms of:

    • Selenium Server/Client
    • GeckoDriver
    • Firefox

    Additionally, your code block and the error stack trace would have given us some clues about whats wrong happening. However this issue can happen due to multiple factors as follows:

    • As per Hang when navigation request removes the current browsing context if you have used driver.navigate().back(); when Selenium's focus was within an