selenium
selenium copied to clipboard
unknown field 'Pdeathsig' in struct literal of type syscall.SysProcAttr
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
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.
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.
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.
go get -u github.com/tebeka/selenium@masterworks like a charm on macOS now, thank you!
Currently having this same issue on macOS Big Sur