Skip to content

Instantly share code, notes, and snippets.

@amwolff
Created August 7, 2017 09:26
Show Gist options
  • Save amwolff/eed05634f413a084a804e64d54b2070a to your computer and use it in GitHub Desktop.
Save amwolff/eed05634f413a084a804e64d54b2070a to your computer and use it in GitHub Desktop.
Initializing browser
I'm doing this:
func main() {
selenium.SetDebug(false)
browser := selenium.Capabilities{
"browserName": "firefox",
}
wd, err := selenium.NewRemote(browser, "http://127.0.0.1:4444/wd/hub")
if err != nil {
logrus.Panic(err)
}
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment