base image to run tests need both golang and firefox
904
package main
import (
marionette "github.com/raohwork/marionette-go"
"github.com/raohwork/marionette-go/mnclient"
"github.com/raohwork/marionette-go/mnsender"
)
func main() {
s, err := mnsender.NewTCPSender("127.0.0.1:2828", 0)
// handler error here
if err := s.Start(); err != nil {
// handle error
}
defer s.Stop()
cl := &mnclient.Commander{Sender: s}
// go to google
cl.Navigate("https://www.google.com")
}
There's a Docker image hosted at Docker Hub. It is a helper for me (and projects using marionette-go, maybe) to run tests at local machine or docker based CI env like DroneCI.
The image accepts 3 envvars
GO_VER: Go version to download, like 1.11.5.FX_VER: Firefox version to download, like 65.0.1.XVFB: Disable headless mode, use xvfb instead.Refer dev-test.sh and .drone.yaml for example usage of this image.
From the first stable version (3.0.0), new versions will strictly following these rules.
Codes depends on older/newer version will work unchanged (if not depends on the buggy behavier I fixed).
Codes depends on older version will work unchanged (if not depends on the buggy behavier I fixed).
Your code will work differently or fail to compile.
There will be a release note to address the changes and lowest supported Firefox version.
LGPLv3 | MPL2.0
Content type
Image
Digest
Size
254.7 MB
Last updated
about 6 years ago
docker pull ronmi/go-firefox