Skip to content

mediabuyerbot/go-webdriver

Repository files navigation

go-webdriver Coverage Status

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

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

Elements

Specification Example Chrome Firefox
Find Element
Find Elements
Find Element From Element
Find Elements From Element
Get Active Element
Is Element Selected
Get Element Attribute
Get Element Property
Get Element CSS Value
Get Element Text
Get Element Tag Name
Get Element Rect
Element Enabled
Element Click
Element Clear
Element Send Keys

Releases

No releases published

Packages

No packages published

Languages