webdriver

package module
v0.0.0-...-b78158d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 19 Imported by: 0

README

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

Documentation

Index

Constants

View Source
const (
	// List of command-line arguments to use when starting Chrome. Arguments with an associated value
	// should be separated by a '=' sign (e.g., ['start-maximized', 'user-data-dir=/tmp/temp_profile']).
	// See here for a list of Chrome arguments.
	ChromeCapabilityArgsName = "args"

	// Path to the Chrome executable to use (on Mac OS X, this should be the actual binary,
	// not just the app. e.g., '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome')
	ChromeCapabilityBinaryName = "binary"

	// A list of Chrome extensions to install on startup. Each item in the list
	// should be a base-64 encoded packed Chrome extension (.crx)
	ChromeCapabilityExtensionName = "extensions"

	// A dictionary with each entry consisting of the name of the preference and its value.
	// These preferences are applied to the Local State file in the user data folder.
	ChromeCapabilityLocalStateName = "localState"

	// A dictionary with each entry consisting of the name of the preference and its value.
	// These preferences are only applied to the user profile in use.
	// See the 'Preferences' file in Chrome's user data directory for examples.
	ChromeCapabilityPreferencesName = "prefs"

	// If false, Chrome will be quit when ChromeDriver is killed, regardless of whether the session is quit.
	// If true, Chrome will only be quit if the session is quit (or closed). Note, if true, and the session is not quit,
	// ChromeDriver cannot clean up the temporary user data directory that the running Chrome instance is using.
	ChromeCapabilityDetachName = "detach"

	// An address of a Chrome debugger server to connect to, in the form of <hostname/ip:port>, e.g. '127.0.0.1:38947'
	ChromeCapabilityDebuggerAddressName = "debuggerAddress"

	// List of Chrome command line switches to exclude that ChromeDriver by default passes when starting Chrome.
	// Do not prefix switches with --.
	ChromeCapabilityExcludeSwitchesName = "excludeSwitches"

	// Directory to store Chrome minidumps . (Supported only on Linux.)
	ChromeCapabilityMiniDumpPathName = "minidumpPath"

	// A dictionary with either a value for “deviceName,” or values for “deviceMetrics” and “userAgent.”
	// Refer to Mobile Emulation for more information.
	ChromeCapabilityMobileEmulationName = "mobileEmulation"

	// An optional dictionary that specifies performance logging preferences. See below for more information.
	ChromeCapabilityPerfLoggingPrefsName = "perfLoggingPrefs"

	// A list of window types that will appear in the list of window handles.
	// For access to <webview> elements, include "webview" in this list.
	ChromeCapabilityWindowTypesName = "windowTypes"

	ChromeOptionsKey = "goog:chromeOptions"
)
View Source
const (
	EnvChromeDriverPath = "CHROMEDRIVER_PATH"
)

Variables

View Source
var ErrBase64Format = errors.New("webdriver: string does not match format base64")

Functions

func IsBase64

func IsBase64(s string) bool

func LoadChromeExtension

func LoadChromeExtension(extensionPath string) (base64 string, err error)

Types

type Browser

type Browser struct {
	// contains filtered or unexported fields
}

func Chrome

func Chrome(opts *ChromeOptionsBuilder) (*Browser, error)

func OpenRemoteBrowser

func OpenRemoteBrowser(ctx context.Context, addr string, opts w3cproto.BrowserOptions) (*Browser, error)

OpenRemoteBrowser creates a new instance of the remote browser.

func (*Browser) ActiveWindow

func (b *Browser) ActiveWindow() (id w3cproto.WindowHandle, err error)

ActiveWindow returns the ID of current window handle.

func (*Browser) AddCookie

func (b *Browser) AddCookie(c w3cproto.Cookie) error

AddCookie adds a cookie.

func (*Browser) Back

func (b *Browser) Back() error

Back navigate backwards in the browser history, if possible.

func (*Browser) Capabilities

func (b *Browser) Capabilities() w3cproto.Capabilities

Capabilities returns the browser capabilities.

func (*Browser) Close

func (b *Browser) Close() error

func (*Browser) CloseActiveWindow

func (b *Browser) CloseActiveWindow() error

CloseActiveWindow closes the current window.

func (*Browser) CloseWindow

func (b *Browser) CloseWindow(id w3cproto.WindowHandle) error

CloseWindow closes a window.

func (*Browser) Cookies

func (b *Browser) Cookies() ([]w3cproto.Cookie, error)

Cookies returns an all cookies visible to the current page.

func (*Browser) CurrentURL

func (b *Browser) CurrentURL() (url string, err error)

CurrentURL returns the URL of the current page.

func (*Browser) DeleteCookie

func (b *Browser) DeleteCookie(name string) error

DeleteCookie deletes cookies by name visible to the current page.

func (*Browser) DeleteCookies

func (b *Browser) DeleteCookies() error

DeleteCookies deletes all cookies visible to the current page.

func (*Browser) ElementScreenshot

func (b *Browser) ElementScreenshot(elementID string) (io.Reader, error)

ElementScreenshot takes a screenshot of the element on the current page.

func (*Browser) Execute

func (b *Browser) Execute(script string, args []interface{}) ([]byte, error)

Execute inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous and the result of evaluating the script is returned to the client. The script argument defines the script to execute in the form of a function body. The value returned by that function will be returned to the client. The function will be invoked with the provided args array and the values may be accessed via the arguments object in the order specified. Arguments may be any JSON-primitive, array, or JSON object.

func (*Browser) ExecuteAsync

func (b *Browser) ExecuteAsync(script string, args []interface{}) ([]byte, error)

ExecuteAsync inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be asynchronous and must signal that is done by invoking the provided callback, which is always provided as the final argument to the function. The value to this callback will be returned to the client. Asynchronous script commands may not span page loads. If an unload event is fired while waiting for a script result, an error should be returned to the client. The script argument defines the script to execute in teh form of a function body. The function will be invoked with the provided args array and the values may be accessed via the arguments object in the order specified. The final argument will always be a callback function that must be invoked to signal that the script has finished. Arguments may be any JSON-primitive, array, or JSON object.

func (*Browser) FindElementByID

func (b *Browser) FindElementByID(id string) (we WebElement, err error)

FindElementByID finds an element on the page, starting from the document root.

func (*Browser) FindElementByLinkText

func (b *Browser) FindElementByLinkText(text string) (we WebElement, err error)

FindElementByLinkText finds an element on the page, starting from the document root.

func (*Browser) FindElementByXPATH

func (b *Browser) FindElementByXPATH(xpath string) (we WebElement, err error)

FindElementByXPATH finds an element on the page, starting from the document root.

func (*Browser) Forward

func (b *Browser) Forward() error

Forward navigate forwards in the browser history, if possible.

func (*Browser) Fullscreen

func (b *Browser) Fullscreen() error

Fullscreen resizes the window to full screen.

func (*Browser) GetCookie

func (b *Browser) GetCookie(name string) (w3cproto.Cookie, error)

GetCookie returns a cookie by name visible to the current page.

func (*Browser) GetTimeout

func (b *Browser) GetTimeout() (w3cproto.Timeout, error)

GetTimeout returns the timeouts implicit, pageLoad, script.

func (*Browser) Maximize

func (b *Browser) Maximize() error

Maximize increases the window to the maximum available size without going full-screen.

func (*Browser) Minimize

func (b *Browser) Minimize() error

Minimize decreases the window to the minimum available size.

func (*Browser) MoveTo

func (b *Browser) MoveTo(x, y int) error

MoveTo alters the position of the operating system window.

func (*Browser) NavigateTo

func (b *Browser) NavigateTo(u string) error

NavigateTo navigates to a new URL.

func (*Browser) OpenTab

func (b *Browser) OpenTab() (id w3cproto.WindowHandle, err error)

OpenTab creates a new tab.

func (*Browser) OpenWindow

func (b *Browser) OpenWindow() (id w3cproto.WindowHandle, err error)

OpenWindow creates a new window.

func (*Browser) Refresh

func (b *Browser) Refresh(ctx context.Context) error

Refresh refresh the current page.

func (*Browser) ResizeTo

func (b *Browser) ResizeTo(width, height int) error

ResizeTo alters the size of the operating system window.

func (*Browser) ResizeWindow

func (b *Browser) ResizeWindow(r w3cproto.Rect) (winRect w3cproto.Rect, err error)

ResizeWindow alters the size or position of the operating system window.

func (*Browser) ScreenPosition

func (b *Browser) ScreenPosition() (x int, y int, err error)

ScreenPosition returns a window position on the screen of the operating system.

func (*Browser) ScreenSize

func (b *Browser) ScreenSize() (width int, height int, err error)

ScreenSize returns a window size on the screen of the operating system.

func (*Browser) Screenshot

func (b *Browser) Screenshot() (io.Reader, error)

Screenshot takes a screenshot of the current page.

func (*Browser) ScreenshotJPG

func (b *Browser) ScreenshotJPG() (image.Image, error)

ScreenshotJPG takes a screenshot of the current page.

func (*Browser) ScreenshotPNG

func (b *Browser) ScreenshotPNG() (image.Image, error)

ScreenshotPNG takes a screenshot of the current page.

func (*Browser) SetImplicitTimeout

func (b *Browser) SetImplicitTimeout(d time.Duration) error

SetImplicitTimeout sets the amount of time the browser should wait when searching for elements. The timeout will be rounded to nearest millisecond.

func (*Browser) SetPageLoadTimeout

func (b *Browser) SetPageLoadTimeout(d time.Duration) error

SetPageLoadTimeout sets the amount of time the browser should wait when loading a page. The timeout will be rounded to nearest millisecond.

func (*Browser) SetScriptTimeout

func (b *Browser) SetScriptTimeout(d time.Duration) error

SetScriptTimeout sets the amount of time that asynchronous scripts are permitted to run before they are aborted. The timeout will be rounded to nearest millisecond.

func (*Browser) Source

func (b *Browser) Source() (source string, err error)

Source returns a string serialization of the DOM of the current browsing context active document.

func (*Browser) Status

func (b *Browser) Status() (w3cproto.Status, error)

Status returns information about whether a browser is in a state in which it can create new sessions, but may additionally include arbitrary meta information that is specific to the implementation.

func (*Browser) SwitchTo

func (b *Browser) SwitchTo(id w3cproto.WindowHandle) error

SwitchTo switches between tabs or windows.

func (*Browser) SwitchToFrame

func (b *Browser) SwitchToFrame(id w3cproto.FrameHandle) error

SwitchToFrame changes focus to another frame on the page.

func (*Browser) SwitchToParentFrame

func (b *Browser) SwitchToParentFrame() error

SwitchToParentFrame changes focus back to parent frame.

func (*Browser) Title

func (b *Browser) Title(ctx context.Context) (title string, err error)

Title returns the current page title.

func (*Browser) UID

func (b *Browser) UID() string

UID returns the unique browser id.

func (*Browser) Url

func (b *Browser) Url(u string) error

Url navigates to a new URL (alias for NavigateTo).

func (*Browser) Windows

func (b *Browser) Windows() (ids []w3cproto.WindowHandle, err error)

Windows returns the list of all window handles(ids) available to the session.

func (*Browser) WithContext

func (b *Browser) WithContext(ctx context.Context)

type ChromeOptionsBuilder

type ChromeOptionsBuilder struct {
	// contains filtered or unexported fields
}

func ChromeOptions

func ChromeOptions() *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) AddArgument

func (b *ChromeOptionsBuilder) AddArgument(arg ...string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) AddExcludeSwitches

func (b *ChromeOptionsBuilder) AddExcludeSwitches(exclude ...string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) AddExtension

func (b *ChromeOptionsBuilder) AddExtension(base64 string) error

func (*ChromeOptionsBuilder) AddFirstMatch

func (b *ChromeOptionsBuilder) AddFirstMatch(key string, value interface{}) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) AddWindowTypes

func (b *ChromeOptionsBuilder) AddWindowTypes(types ...string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) Build

func (*ChromeOptionsBuilder) MobileEmulation

func (b *ChromeOptionsBuilder) MobileEmulation() *MobileEmulation

func (*ChromeOptionsBuilder) PerfLoggingPreferences

func (b *ChromeOptionsBuilder) PerfLoggingPreferences() *PerfLoggingPreferences

func (*ChromeOptionsBuilder) SetAcceptInsecureCerts

func (b *ChromeOptionsBuilder) SetAcceptInsecureCerts(flag bool) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetBinary

func (b *ChromeOptionsBuilder) SetBinary(binPath string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetBrowserName

func (b *ChromeOptionsBuilder) SetBrowserName(name string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetBrowserVersion

func (b *ChromeOptionsBuilder) SetBrowserVersion(version string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetDebuggerAddr

func (b *ChromeOptionsBuilder) SetDebuggerAddr(addr string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetDetach

func (b *ChromeOptionsBuilder) SetDetach(flag bool) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetLocalState

func (b *ChromeOptionsBuilder) SetLocalState(key string, value interface{}) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetMiniDumpPath

func (b *ChromeOptionsBuilder) SetMiniDumpPath(path string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetPageLoadStrategy

func (b *ChromeOptionsBuilder) SetPageLoadStrategy(strategy string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetPlatformName

func (b *ChromeOptionsBuilder) SetPlatformName(platform string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetPref

func (b *ChromeOptionsBuilder) SetPref(key string, value interface{}) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetProxy

func (*ChromeOptionsBuilder) SetTimeout

func (*ChromeOptionsBuilder) SetUnhandledPromptBehavior

func (b *ChromeOptionsBuilder) SetUnhandledPromptBehavior(prompt string) *ChromeOptionsBuilder

func (*ChromeOptionsBuilder) SetWindowRect

func (b *ChromeOptionsBuilder) SetWindowRect(flag bool) *ChromeOptionsBuilder

type DeviceMetrics

type DeviceMetrics struct {
	Width      uint    `json:"width"`
	Height     uint    `json:"height"`
	PixelRatio float64 `json:"pixelRatio"`
	Touch      bool    `json:"touch,omitempty"`
}

func (*DeviceMetrics) Capabilities

func (dm *DeviceMetrics) Capabilities() w3cproto.Capabilities

type Driver

type Driver interface {
	Run(context.Context) error
	Stop(context.Context) error
}

type FirefoxOptionsBuilder

type FirefoxOptionsBuilder struct {
}

func FirefoxOptions

func FirefoxOptions() *FirefoxOptionsBuilder

type MobileEmulation

type MobileEmulation struct {
	// contains filtered or unexported fields
}

func (*MobileEmulation) Set

func (e *MobileEmulation) Set(key string, value interface{}) *MobileEmulation

func (*MobileEmulation) SetDeviceMetrics

func (e *MobileEmulation) SetDeviceMetrics(m *DeviceMetrics) *MobileEmulation

func (*MobileEmulation) SetDeviceName

func (e *MobileEmulation) SetDeviceName(name string) *MobileEmulation

func (*MobileEmulation) SetUserAgent

func (e *MobileEmulation) SetUserAgent(agent string) *MobileEmulation

type PerfLoggingPreferences

type PerfLoggingPreferences struct {
	// contains filtered or unexported fields
}

func (*PerfLoggingPreferences) BufferUsageReportingIntervalMillis

func (pp *PerfLoggingPreferences) BufferUsageReportingIntervalMillis(v uint) *PerfLoggingPreferences

func (*PerfLoggingPreferences) EnableNetwork

func (pp *PerfLoggingPreferences) EnableNetwork(flag bool) *PerfLoggingPreferences

func (*PerfLoggingPreferences) EnablePage

func (pp *PerfLoggingPreferences) EnablePage(flag bool) *PerfLoggingPreferences

func (*PerfLoggingPreferences) EnableTimeline

func (pp *PerfLoggingPreferences) EnableTimeline(flag bool) *PerfLoggingPreferences

func (*PerfLoggingPreferences) Set

func (pp *PerfLoggingPreferences) Set(key string, value interface{}) *PerfLoggingPreferences

func (*PerfLoggingPreferences) TracingCategories

func (pp *PerfLoggingPreferences) TracingCategories(s string) *PerfLoggingPreferences

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(ctx context.Context, addr string, opts w3cproto.BrowserOptions) (*Session, error)

func NewSessionFromClient

func NewSessionFromClient(ctx context.Context, client httpclient.Client, opts w3cproto.BrowserOptions) (*Session, error)

func (*Session) Close

func (b *Session) Close(ctx context.Context) error

Close close the current session.

func (*Session) Context

func (b *Session) Context() w3cproto.Context

Context returns a context protocol.

func (*Session) Cookies

func (b *Session) Cookies() w3cproto.Cookies

Cookies returns a cookies protocol.

func (*Session) Document

func (b *Session) Document() w3cproto.Document

Document returns a document protocol.

func (*Session) Elements

func (b *Session) Elements() w3cproto.Elements

Elements returns an elements protocol.

func (*Session) ExecAsyncScript

func (b *Session) ExecAsyncScript(ctx context.Context, script string, args []interface{}) ([]byte, error)

ExecAsyncScript inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be asynchronous and must signal that is done by invoking the provided callback, which is always provided as the final argument to the function. The value to this callback will be returned to the client. Asynchronous script commands may not span page loads. If an unload event is fired while waiting for a script result, an error should be returned to the client. The script argument defines the script to execute in teh form of a function body. The function will be invoked with the provided args array and the values may be accessed via the arguments object in the order specified. The final argument will always be a callback function that must be invoked to signal that the script has finished. Arguments may be any JSON-primitive, array, or JSON object.

func (*Session) ExecScript

func (b *Session) ExecScript(ctx context.Context, script string, args []interface{}) ([]byte, error)

ExecScript inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous and the result of evaluating the script is returned to the client. The script argument defines the script to execute in the form of a function body. The value returned by that function will be returned to the client. The function will be invoked with the provided args array and the values may be accessed via the arguments object in the order specified. Arguments may be any JSON-primitive, array, or JSON object.

func (*Session) Navigation

func (b *Session) Navigation() w3cproto.Navigation

Navigation returns a navigation protocol.

func (*Session) ScreenCapture

func (b *Session) ScreenCapture() w3cproto.ScreenCapture

ScreenCapture returns a screen capture protocol.

func (*Session) ScreenshotJPG

func (b *Session) ScreenshotJPG(ctx context.Context) (image.Image, error)

ScreenshotJPG takes a screenshot of the current page.

func (*Session) ScreenshotPNG

func (b *Session) ScreenshotPNG(ctx context.Context) (image.Image, error)

ScreenshotPNG takes a screenshot of the current page.

func (*Session) Session

func (b *Session) Session() w3cproto.Session

Session returns a session protocol.

func (*Session) SessionID

func (b *Session) SessionID() string

SessionID returns the unique session id.

func (*Session) Timeouts

func (b *Session) Timeouts() w3cproto.Timeouts

Timeouts returns a timeouts protocol.

func (*Session) Title

func (b *Session) Title(ctx context.Context) (string, error)

Title returns the current page title.

func (*Session) Url

func (b *Session) Url(ctx context.Context, url string) error

Url navigate to a new URL.

type WebElement

type WebElement struct {
	// contains filtered or unexported fields
}

func (WebElement) Attr

func (w WebElement) Attr(name string) (string, error)

func (WebElement) PressAddKey

func (w WebElement) PressAddKey() error

func (WebElement) PressAltKey

func (w WebElement) PressAltKey() error

func (WebElement) PressBackspaceKey

func (w WebElement) PressBackspaceKey() error

func (WebElement) PressCancelKey

func (w WebElement) PressCancelKey() error

func (WebElement) PressClearKey

func (w WebElement) PressClearKey() error

func (WebElement) PressControlKey

func (w WebElement) PressControlKey() error

func (WebElement) PressDecimalKey

func (w WebElement) PressDecimalKey() error

func (WebElement) PressDeleteKey

func (w WebElement) PressDeleteKey() error

func (WebElement) PressDivideKey

func (w WebElement) PressDivideKey() error

func (WebElement) PressDownArrowKey

func (w WebElement) PressDownArrowKey() error

func (WebElement) PressEndKey

func (w WebElement) PressEndKey() error

func (WebElement) PressEnterKey

func (w WebElement) PressEnterKey() error

func (WebElement) PressEqualsKey

func (w WebElement) PressEqualsKey() error

func (WebElement) PressEscapeKey

func (w WebElement) PressEscapeKey() error

func (WebElement) PressF10Key

func (w WebElement) PressF10Key() error

func (WebElement) PressF11Key

func (w WebElement) PressF11Key() error

func (WebElement) PressF12Key

func (w WebElement) PressF12Key() error

func (WebElement) PressF1Key

func (w WebElement) PressF1Key() error

func (WebElement) PressF2Key

func (w WebElement) PressF2Key() error

func (WebElement) PressF3Key

func (w WebElement) PressF3Key() error

func (WebElement) PressF4Key

func (w WebElement) PressF4Key() error

func (WebElement) PressF5Key

func (w WebElement) PressF5Key() error

func (WebElement) PressF6Key

func (w WebElement) PressF6Key() error

func (WebElement) PressF7Key

func (w WebElement) PressF7Key() error

func (WebElement) PressF8Key

func (w WebElement) PressF8Key() error

func (WebElement) PressHelpKey

func (w WebElement) PressHelpKey() error

func (WebElement) PressHomeKey

func (w WebElement) PressHomeKey() error

func (WebElement) PressInsertKey

func (w WebElement) PressInsertKey() error

func (WebElement) PressLeftArrowKey

func (w WebElement) PressLeftArrowKey() error

func (WebElement) PressMetaKey

func (w WebElement) PressMetaKey() error

func (WebElement) PressMultiplyKey

func (w WebElement) PressMultiplyKey() error

func (WebElement) PressNullKey

func (w WebElement) PressNullKey() error

func (WebElement) PressNumpad0Key

func (w WebElement) PressNumpad0Key() error

func (WebElement) PressNumpad1Key

func (w WebElement) PressNumpad1Key() error

func (WebElement) PressNumpad2Key

func (w WebElement) PressNumpad2Key() error

func (WebElement) PressNumpad3Key

func (w WebElement) PressNumpad3Key() error

func (WebElement) PressNumpad4Key

func (w WebElement) PressNumpad4Key() error

func (WebElement) PressNumpad5Key

func (w WebElement) PressNumpad5Key() error

func (WebElement) PressNumpad6Key

func (w WebElement) PressNumpad6Key() error

func (WebElement) PressNumpad7Key

func (w WebElement) PressNumpad7Key() error

func (WebElement) PressNumpad8Key

func (w WebElement) PressNumpad8Key() error

func (WebElement) PressNumpad9Key

func (w WebElement) PressNumpad9Key() error

func (WebElement) PressPageDownKey

func (w WebElement) PressPageDownKey() error

func (WebElement) PressPageUpKey

func (w WebElement) PressPageUpKey() error

func (WebElement) PressPauseKey

func (w WebElement) PressPauseKey() error

func (WebElement) PressReturnKey

func (w WebElement) PressReturnKey() error

func (WebElement) PressRightArrowKey

func (w WebElement) PressRightArrowKey() error

func (WebElement) PressSemicolonKey

func (w WebElement) PressSemicolonKey() error

func (WebElement) PressSeparatorKey

func (w WebElement) PressSeparatorKey() error

func (WebElement) PressShiftKey

func (w WebElement) PressShiftKey() error

func (WebElement) PressSpaceKey

func (w WebElement) PressSpaceKey() error

func (WebElement) PressSubstractKey

func (w WebElement) PressSubstractKey() error

func (WebElement) PressTabKey

func (w WebElement) PressTabKey() error

func (WebElement) PressUpArrowKey

func (w WebElement) PressUpArrowKey() error

func (WebElement) SendKeys

func (w WebElement) SendKeys(keys ...w3cproto.Key) error

Directories

Path Synopsis
examples
pkg
w3cproto
Package w3c is a generated GoMock package.
Package w3c is a generated GoMock package.
third_party

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL