Documentation
¶
Overview ¶
Package webdriver is a small W3C WebDriver client (https://www.w3.org/TR/webdriver/): just what the e2e lane for Safari needs, to drive the real Safari through safaridriver (Playwright's WebKit is not Safari). It starts the driver, creates a session, navigates and deletes the session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Base string // http://127.0.0.1:port
HTTP *http.Client
}
Client talks to one WebDriver server.
type Error ¶
type Error struct {
Status int
Code string // "error" field, e.g. "session not created"
Message string
}
Error is a WebDriver error response (W3C section 6.6).
type Session ¶
type Session struct {
ID string
// Version is the browser's version the driver reported (capabilities
// browserVersion), "" if it did not say.
Version string
// contains filtered or unexported fields
}
Session is one browser session.
Click to show internal directories.
Click to hide internal directories.