selenium icon indicating copy to clipboard operation
selenium copied to clipboard

unknown field 'Pdeathsig' in struct literal of type syscall.SysProcAttr

Open andrei-galkin opened this issue 6 years ago • 5 comments

I run go test -test.run=Example$ github.com/tebeka/selenium on Windows 7 go version is go1.11 windows/amd64 and I have go\src\github.com\tebeka\selenium\sauce\connect.go:73:4: unknown field 'Pdeathsig' in struct literal of type syscall.SysProcAttr. Any Idea how to solve this? Thanks

andrei-galkin avatar Jun 07 '19 04:06 andrei-galkin

I run go test -test.run=Example$ github.com/tebeka/selenium on Windows 7 go version is go1.11 windows/amd64 and I have go\src\github.com\tebeka\selenium\sauce\connect.go:73:4: unknown field 'Pdeathsig' in struct literal of type syscall.SysProcAttr. Any Idea how to solve this? Thanks

Unfortunately this project does not excute on Windows. Though I have removed this part of code, I got other error related with XVFB application and we know that this application runs on linux based os.

AndersonLira avatar Jun 07 '19 12:06 AndersonLira

I'm getting the same error on Mac OSX using the go test -test.run=Example$ github.com/tebeka/selenium command.

When I try to run docker-compose up --build I see error starting frame buffer: exec: "Xvfb": executable file not found in $PATH in the logs.

skillitzimberg avatar Jun 11 '19 14:06 skillitzimberg

Sorry about that. Sauce support is still experimental and a work-in-progress. I've removed use of Pdeathsig at HEAD. Can you try it again?

(That said, I've never used this project on any platform other than Linux and don't immediately have such a platform available.)

@skillitzimberg Xvfb is a binary requirement for testing in Docker. It is specified in the Dockerfile. The following docker commands work for me, as specified by README.md:

    $ docker build -t go-selenium testing/
    $ docker run --volume=$(pwd):/code --workdir=/code -it go-selenium bash
    # testing/docker-test.sh

Please open a new bug for the Docker/Xvfb issue if there is still a problem.

minusnine avatar Aug 01 '19 20:08 minusnine

go get -u github.com/tebeka/selenium@masterworks like a charm on macOS now, thank you!

fabstu avatar Feb 04 '20 22:02 fabstu

Currently having this same issue on macOS Big Sur

GitTestCS avatar Jan 17 '21 17:01 GitTestCS