Source

selenium /

Filename Size Date modified Message
65 B
README fixes
847 B
Added tag v0.8.3 for changeset 619af3c82b98
1.5 KB
0.8.3
1.1 KB
It is 2012 already :)
348 B
markdown
1.7 KB
GetHTTPClient and 0.8.0
227 B
merge from default
1.4 KB
Example doc
2.4 KB
merge from default
96 B
push to github
21.0 KB
Add ResizeWindow()
12.2 KB
Add simple test for ResizeWindow()
666 B
Fix for nil value in stringCommand and TestGetAttributeNotFound
8.3 KB
0.8.3
793 B
Selenium 2.44.0

selenium - Selenium Client For Go

About

This is a Selenium client for Go. Currently it supports only the remote WebDriver client, so you'll need a selenium server running.

Installing

Run

go get bitbucket.org/tebeka/selenium

Docs

Docs are at godoc.org.

AppEngine

GetHTTPClient exposes the HTTP client used by the driver. You can access it to add the request context.

func myRequestHandler(w http.ResponseWriter, r *http.Request) {
    selenium.GetHTTPClient().Transport = &urlfetch.Transport{
        Context:  appengine.NewContext(r),
        Deadline: 30 * time.Second,
    }
    ...
}

Thanks to bthomson for this one.

Changes

See here.

TODO

  • Support Firefox profiles
  • Finish full Selenium API.
  • More testing
  • Selenium 1 client
  • Our own server for testing (getting out takes too much time)
  • SauceLabs integration

Hacking

  • You'll need a Selenium server to run the tests, run selenium.sh download to get it and selenium.sh start to run it.
  • Test with ./run-tests.sh.
  • I (Miki) work on dev branch since go get pull from default.

License

MIT