https://github.com/daicmod/wdinstaller
https://github.com/daicmod/wdinstaller
agouti go golang selenium webdriver
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daicmod/wdinstaller
- Owner: daicmod
- License: mit
- Created: 2022-06-09T18:29:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T18:10:42.000Z (almost 4 years ago)
- Last Synced: 2024-11-15T03:52:18.648Z (over 1 year ago)
- Topics: agouti, go, golang, selenium, webdriver
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://chromedriver.chromium.org/)
[GeckoDriver](https://github.com/mozilla/geckodriver)
[MicrosoftEdgeDriver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
## Usage
Use it with [agouti](https://github.com/sclevine/agouti).
```go
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