Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
476 views
in Technique[技术] by (71.8m points)

python - Browsing context has been discarded using GeckoDriver Firefox through Selenium

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 to decode response from marionette

Any idea what could have caused this outside the code? (since no changes were made)

I'm using firefox and geckodriver. After i got these errors i updated firefox, geckodriver, and selenium, but it didn't help.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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:

GeckoDriver, Selenium and Firefox Browser compatibility chart

GeckoDriverVersions


Reference

You can find a relevant detailed discussion in:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...