# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
go-webdriver 
Work in progress...
Contents
Installation
go get github.com/mediabuyerbot/go-webdriver
Commands
Build dependencies
make deps
Run test
make test
Run test with coverage profile
make covertest
Run integration test
make integration
Run sync coveralls
COVERALLS_GO_WEBDRIVER_TOKEN=${COVERALLS_REPO_TOKEN}
make sync-coveralls
Build mocks
make mocks
Download ChromeDriver, GeckoDriver third_party/drivers
make download-drivers
ChromeOptions docs
- V8 dev
- Chromium command line switches
- Chromium command line switches
- Chromium command line prefs name
FirefoxOptions docs
TODO
Protocol implementation
Session
Specification | Example | Chrome | Firefox |
---|---|---|---|
New Session | ✓ | ✓ | |
Delete Session | ✓ | ✓ | |
Status | ✓ | ✓ |
Timeouts
Specification | Example | Chrome | Firefox |
---|---|---|---|
Get Timeouts | ✓ | ✓ | |
Set Timeouts | ✓ | ✓ |
Navigation
Specification | Example | Chrome | Firefox |
---|---|---|---|
Navigate To | ✓ | ✓ | |
Get Current URL | ✓ | ✓ | |
Back | ✓ | ✓ | |
Forward | ✓ | ✓ | |
Refresh | ✓ | ✓ | |
Get Title | ✓ | ✓ |
Context
Specification | Example | Chrome | Firefox |
---|---|---|---|
Get Window Handle | ✓ | ✓ | |
Close Window | ✓ | ✓ | |
Switch To Window | ✓ | ✓ | |
Get Window Handles | ✓ | ✓ | |
New Window | ✓ | ✓ | |
Switch To Frame | ✓ | ✓ | |
Switch To Parent Frame | ✓ | ✓ | |
Get Window Rect | ✓ | ✓ | |
Set Window Rect | ✓ | ✓ | |
Maximize Window | ✓ | ✓ | |
Minimize Window | ✓ | ✓ | |
Fullscreen Window | ✓ | ✓ |
Cookies
Specification | Example | Chrome | Firefox |
---|---|---|---|
Get All Cookies | ✓ | ✓ | |
Get Named Cookie | ✓ | ✓ | |
Add Cookie | ✓ | ✓ | |
Delete Cookie | ✓ | ✓ | |
Delete All Cookies | ✓ | ✓ |
Document
Specification | Example | Chrome | Firefox |
---|---|---|---|
Get Page Source | ✓ | ✓ | |
Execute Script | ✓ | ✓ | |
Execute Async Script | ✓ | ✓ |
Screen capture
Specification | Example | Chrome | Firefox |
---|---|---|---|
Take Screenshot | ✓ | ✓ | |
Take Element Screenshot | ✓ | ✓ |
User prompts
Specification | Example | Chrome | Firefox |
---|---|---|---|
Dismiss Alert | ✓ | ✓ | |
Accept Alert | ✓ | ✓ | |
Get Alert Text | ✓ | ✓ | |
Send Alert Text | ✓ | ✓ |