Versions in this module Expand all Collapse all v0 v0.1.0 Dec 31, 2016 Changes in this version + const AltKey + const ArrowDownKey + const ArrowLeftKey + const ArrowRightKey + const ArrowUpKey + const AsteriskKey + const BackspaceKey + const CancelKey + const ClearKey + const CommaKey + const ControlKey + const DeleteKey + const ElementNotInteractable + const ElementNotSelectable + const EndKey + const EnterKey + const EqualsKey + const EscapeKey + const F10Key + const F11Key + const F12Key + const F1Key + const F2Key + const F3Key + const F4Key + const F5Key + const F6Key + const F7Key + const F8Key + const F9Key + const ForwardSlashKey + const HelpKey + const HomeKey + const InsecureCertificate + const InsertKey + const InvalidArgument + const InvalidCookieDomain + const InvalidCoordinates + const InvalidElementState + const InvalidSelector + const InvalidSessionID + const JavascriptError + const MetaKey + const MinusKey + const MoveTargetOutOfBounds + const NoSuchAlert + const NoSuchCookie + const NoSuchElement + const NoSuchFrame + const NoSuchWindow + const PageDownKey + const PageUpKey + const PauseKey + const PeriodKey + const PlusKey + const ReturnKey + const ScriptTimeout + const SemiColonKey + const SessionNotCreated + const ShiftKey + const SpaceKey + const StaleElementReference + const TabKey + const TimeoutError + const UnableToCaptureScreen + const UnableToSetCookie + const UnexpectedAlertOpen + const UnidentifiedKey + const UnknownCommand + const UnknownError + const UnknownMethod + const UnsupportedOperation + const ZenkakuHankakuKey + var WaitTimeoutError error = errors.New("wait action timed out") + func IsCommunicationError(err error) bool + func IsInvalidURLError(err error) bool + func IsMarshallingError(err error) bool + func IsSessionIDError(err error) bool + func IsUnmarshallingError(err error) bool + type AcceptAlertResponse struct + State string + type AddCookieResponse struct + State string + type AlertTextResponse struct + State string + Text string + type AllCookiesResponse struct + Cookies []Cookie + State string + type BackResponse struct + State string + type Browser interface + BrowserName func() string + func AndroidBrowser() Browser + func ChromeBrowser() Browser + func FirefoxBrowser() Browser + func HTMLUnitBrowser() Browser + func IPadBrowser() Browser + func IPhoneBrowser() Browser + func InternetExplorerBrowser() Browser + func OperaBrowser() Browser + func SafariBrowser() Browser + type By interface + Type func() string + Value func() interface{} + func ByCSSSelector(selector string) By + func ByIndex(index uint) By + func ByLinkText(text string) By + func ByPartialLinkText(text string) By + func ByXPath(path string) By + type Capabilities struct + func (c *Capabilities) Browser() Browser + func (c *Capabilities) SetBrowser(b Browser) + type CloseWindowResponse struct + Handles []string + State string + type CommunicationError struct + Response *ErrorResponse + func (c CommunicationError) Error() string + type Cookie struct + Domain string + HTTPOnly bool + Name string + Path string + SecureOnly bool + Value string + type CookieResponse struct + Cookie Cookie + State string + type CreateSessionCapabilities struct + AcceptInsecureCerts bool + BrowserName string + BrowserVersion string + PlatformName string + type CreateSessionResponse struct + Capabilities CreateSessionCapabilities + SessionID string + type CurrentURLResponse struct + State string + URL string + type DeleteCookieResponse struct + State string + type DeleteSessionResponse struct + SessionID string + State string + type Dimensions struct + Height uint + Width uint + type DismissAlertResponse struct + State string + type Element interface + Attribute func(att string) (*ElementAttributeResponse, error) + CSSValue func(prop string) (*ElementCSSValueResponse, error) + Clear func() (*ElementClearResponse, error) + Click func() (*ElementClickResponse, error) + Enabled func() (*ElementEnabledResponse, error) + ID func() string + Rectangle func() (*ElementRectangleResponse, error) + Selected func() (*ElementSelectedResponse, error) + SendKeys func(keys string) (*ElementSendKeysResponse, error) + TagName func() (*ElementTagNameResponse, error) + Text func() (*ElementTextResponse, error) + type ElementAttributeResponse struct + State string + Value string + type ElementCSSValueResponse struct + State string + Value string + type ElementClearResponse struct + State string + type ElementClickResponse struct + State string + type ElementEnabledResponse struct + Enabled bool + State string + type ElementRectangleResponse struct + Rectangle Rectangle + State string + type ElementSelectedResponse struct + Selected bool + State string + type ElementSendKeysResponse struct + State string + type ElementTagNameResponse struct + State string + Tag string + type ElementTextResponse struct + State string + Text string + type ErrorResponse struct + Message string + State string + type ExecuteScriptResponse struct + Response string + State string + type ForwardResponse struct + State string + type GoResponse struct + State string + type InvalidURLError string + func (i InvalidURLError) Error() string + type MarshallingError struct + func (m MarshallingError) Error() string + type MaximizeWindowResponse struct + State string + type PageSourceResponse struct + Source string + State string + type Rectangle struct + X int + Y int + type RefreshResponse struct + State string + type ScreenshotResponse struct + EncodedImage string + State string + func (s *ScreenshotResponse) ImageBytes() ([]byte, error) + type SendAlertTextResponse struct + State string + type SessionIDError string + func (s SessionIDError) Error() string + type SessionStatusResponse struct + State string + type SetSessionTimeoutResponse struct + State string + type SetWindowSizeResponse struct + State string + type SwitchToFrameResponse struct + State string + type SwitchToParentFrameResponse struct + State string + type SwitchToWindowResponse struct + type Timeout interface + Timeout func() int + Type func() string + func SessionImplicitWaitTimeout(to int) Timeout + func SessionPageLoadTimeout(to int) Timeout + func SessionScriptTimeout(to int) Timeout + type TitleResponse struct + State string + Title string + type UnmarshallingError struct + func (u UnmarshallingError) Error() string + type Until func(w WebDriver) bool + func UntilElementPresent(by By) Until + func UntilURLIs(url string) Until + type WebDriver interface + AcceptAlert func() (*AcceptAlertResponse, error) + AddCookie func(c *Cookie) (*AddCookieResponse, error) + AlertText func() (*AlertTextResponse, error) + AllCookies func() (*AllCookiesResponse, error) + Back func() (*BackResponse, error) + CloseWindow func() (*CloseWindowResponse, error) + Cookie func(name string) (*CookieResponse, error) + CreateSession func() (*CreateSessionResponse, error) + CurrentURL func() (*CurrentURLResponse, error) + DeleteCookie func(name string) (*DeleteCookieResponse, error) + DeleteSession func() (*DeleteSessionResponse, error) + DismissAlert func() (*DismissAlertResponse, error) + DriverURL func() string + ExecuteScript func(script string) (*ExecuteScriptResponse, error) + ExecuteScriptAsync func(script string) (*ExecuteScriptResponse, error) + FindElement func(by By) (Element, error) + FindElements func(by By) ([]Element, error) + Forward func() (*ForwardResponse, error) + Go func(url string) (*GoResponse, error) + MaximizeWindow func() (*MaximizeWindowResponse, error) + PageSource func() (*PageSourceResponse, error) + Refresh func() (*RefreshResponse, error) + Screenshot func() (*ScreenshotResponse, error) + SendAlertText func(text string) (*SendAlertTextResponse, error) + SessionStatus func() (*SessionStatusResponse, error) + SetSessionTimeout func(to Timeout) (*SetSessionTimeoutResponse, error) + SetWindowSize func(dimensions *Dimensions) (*SetWindowSizeResponse, error) + SwitchToFrame func(by By) (*SwitchToFrameResponse, error) + SwitchToParentFrame func() (*SwitchToParentFrameResponse, error) + SwitchToWindow func(handle string) (*SwitchToWindowResponse, error) + Title func() (*TitleResponse, error) + Wait func(u Until, timeout time.Duration, sleep time.Duration) bool + WindowHandle func() (*WindowHandleResponse, error) + WindowHandles func() (*WindowHandlesResponse, error) + WindowSize func() (*WindowSizeResponse, error) + func NewSeleniumWebDriver(serviceURL string, capabilities Capabilities) (WebDriver, error) + type WindowHandleResponse struct + Handle string + State string + type WindowHandlesResponse struct + Handles []string + State string + type WindowSizeResponse struct + Dimensions Dimensions + State string