0

I've installed the latest version of Chrome driver which is 2.9 on a server on Ubuntu, with no display. I've setup everything else. When I run my python script, I get this:

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"3104.1","isDefault":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=54.0.2840.71)
  (Driver info: chromedriver=2.9.248304,platform=Linux 4.4.0-38-generic x86_64)

How to fix this?

Meji
  • 977
  • 2
  • 8
  • 10

1 Answers1

1

In general you can't run the Selenium with ordinary FF or Chrome without display.

As far as I know you have these options:

  • Create virtual display on your server. What you are looking for is VNC server. You can check for example this tutorial. With this you can set-up how many virtual display on your sever you want and run the actual browsers using selenium in them.
  • Use headless browser (which doesn't require display). I know that PhantomJS is often used. But it seems that Chrome is going to support this soon. You can find plenty of the guides on the google on this topic.
Community
  • 1
  • 1
pagep
  • 3,488
  • 1
  • 26
  • 47
  • Your question is not clear. Please provide more information.You are saying that you use Chrome without display - that is not currently possible. – pagep Oct 31 '16 at 13:38
  • I didn't say that. – Meji Oct 31 '16 at 15:42
  • You said `with no display.` and didn't provide any other info how you solved this issue. It's hard to debug problems when you just throw one single error message. Does your browser start at all? .... – pagep May 07 '18 at 11:09