tebeka / selenium

Selenium/Webdriver client for Go
MIT License
2.51k stars 410 forks source link

error starting frame buffer: EOF #140

Open capsulated opened 5 years ago

capsulated commented 5 years ago

Hello, everyone!

I'am trying start example_test on macOs, but always have this error: panic: error starting frame buffer: EOF

And if I run the tests I see that:

=== RUN   TestHelperProcess
--- PASS: TestHelperProcess (0.00s)
=== RUN   TestFakeExecCommand
--- PASS: TestFakeExecCommand (0.02s)
=== RUN   TestChrome
--- FAIL: TestChrome (1.29s)
    remote_test.go:108: Error starting the ChromeDriver server: error starting frame buffer: EOF
=== RUN   TestFirefoxSelenium3
--- FAIL: TestFirefoxSelenium3 (1.26s)
    remote_test.go:262: Error starting the WebDriver server with binary "vendor/selenium-server-standalone-3.8.1.jar": error starting frame buffer: EOF
=== RUN   TestFirefoxGeckoDriver
--- FAIL: TestFirefoxGeckoDriver (1.29s)
    remote_test.go:262: Error starting the WebDriver server with binary "vendor/geckodriver-v0.19.1-linux64": error starting frame buffer: EOF
...

Help me please, what's wrong?

kyleerin commented 5 years ago

I'm getting this issue, too.

pemako commented 5 years ago

I have the same problem.

pcittadini commented 5 years ago

on MacOsx it seems to receive EOF error in service.go: https://github.com/tebeka/selenium/blob/master/service.go (line345)

SudoBobo commented 4 years ago

I found a workaround for local usage. On mac you can run xvfb separately sudo /opt/X11/bin/xvfb -nolisten tcp and then run example_test. Also before you run example_test you need to remove line https://github.com/tebeka/selenium/blob/master/example_test.go#L32 which is selenium.StartFrameBuffer()