Skip to content

daicmod/wdinstaller

Repository files navigation

wdinstaller

Webdriver installer for Golang

This is the webdriver installer module. If webdriver is out of date or does not match your browser version, install the latest webdriver.

For now support:

ChromeDriver
GeckoDriver
MicrosoftEdgeDriver

Usage

Use it with agouti.

func main() {
  opt := wdinstaller.Option{DestPath: "./"}
  if err := wdinstaller.EdgeDriverInstaller(opt); err != nil {
    panic(err)
  }

  edgeDriver := agouti.EdgeDriver(agouti.Browser("msedge"))
  defer edgeDriver.Stop()
  if err := edgeDriver.Start(); err != nil {
	  panic(err)
  }
  edgePage, _ := edgeDriver.NewPage()
  edgePage.Navigate("https://www.google.com")
}
  

Instalation

$ go get github.com/daicmod/wdinstaller

License

MIT

Releases

No releases published

Packages

No packages published

Languages