Versions in this module Expand all Collapse all v1 v1.0.1 Mar 5, 2023 Changes in this version + const AddKey + const AltKey + const Autodetect + const BackspaceKey + const ByCSSSelector + const ByClassName + const ByID + const ByLinkText + const ByName + const ByPartialLinkText + const ByTagName + const ByXPATH + const CancelKey + const ClearKey + const ControlKey + const DecimalKey + const DefaultURLPrefix + const DefaultWaitInterval + const DefaultWaitTimeout + const DeleteKey + const Direct + const DivideKey + const DownArrowKey + 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 HelpKey + const HomeKey + const InsertKey + const LeftArrowKey + const LeftButton + const Manual + const MetaKey + const MiddleButton + const MultiplyKey + const NullKey + const Numpad0Key + const Numpad1Key + const Numpad2Key + const Numpad3Key + const Numpad4Key + const Numpad5Key + const Numpad6Key + const Numpad7Key + const Numpad8Key + const Numpad9Key + const PAC + const PageDownKey + const PageUpKey + const PauseKey + const ReturnKey + const RightArrowKey + const RightButton + const SemicolonKey + const SeparatorKey + const ShiftKey + const SpaceKey + const SubstractKey + const System + const TabKey + const UpArrowKey + var HTTPClient = http.DefaultClient + func DeleteSession(urlPrefix, id string) error + func SetDebug(debug bool) + type Capabilities map[string]interface + func (c Capabilities) AddChrome(f chrome.Capabilities) + func (c Capabilities) AddFirefox(f firefox.Capabilities) + func (c Capabilities) AddLogging(l log.Capabilities) + func (c Capabilities) AddProxy(p Proxy) + func (c Capabilities) SetLogLevel(typ log.Type, level log.Level) + type Condition func(wd WebDriver) (bool, error) + type Cookie struct + Domain string + Expiry uint + Name string + Path string + Secure bool + Value string + type Error struct + Err string + HTTPCode int + LegacyCode int + Message string + Stacktrace string + func (e *Error) Error() string + type FrameBuffer struct + AuthPath string + Display string + func NewFrameBuffer() (*FrameBuffer, error) + func NewFrameBufferWithOptions(options FrameBufferOptions) (*FrameBuffer, error) + func (f FrameBuffer) Stop() error + type FrameBufferOptions struct + ScreenSize string + type Point struct + X int + Y int + type Proxy struct + AutoconfigURL string + FTP string + HTTP string + HTTPPort int + NoProxy []string + SOCKS string + SOCKSPassword string + SOCKSUsername string + SOCKSVersion int + SSL string + SSLPort int + SocksPort int + Type ProxyType + type ProxyType string + type Service struct + func NewChromeDriverService(path string, port int, opts ...ServiceOption) (*Service, error) + func NewGeckoDriverService(path string, port int, opts ...ServiceOption) (*Service, error) + func NewSeleniumService(jarPath string, port int, opts ...ServiceOption) (*Service, error) + func (s *Service) Stop() error + func (s Service) FrameBuffer() *FrameBuffer + type ServiceOption func(*Service) error + func ChromeDriver(path string) ServiceOption + func Display(d, xauthPath string) ServiceOption + func GeckoDriver(path string) ServiceOption + func HTMLUnit(path string) ServiceOption + func JavaPath(path string) ServiceOption + func Output(w io.Writer) ServiceOption + func StartFrameBuffer() ServiceOption + func StartFrameBufferWithOptions(options FrameBufferOptions) ServiceOption + type Size struct + Height int + Width int + type Status struct + Build struct{ ... } + Java struct{ ... } + Message string + OS struct{ ... } + Ready bool + type WebDriver interface + AcceptAlert func() error + ActiveElement func() (WebElement, error) + AddCookie func(cookie *Cookie) error + AlertText func() (string, error) + Back func() error + ButtonDown func() error + ButtonUp func() error + Capabilities func() (Capabilities, error) + Click func(button int) error + Close func() error + CloseWindow func(name string) error + CurrentURL func() (string, error) + CurrentWindowHandle func() (string, error) + DecodeElement func([]byte) (WebElement, error) + DecodeElements func([]byte) ([]WebElement, error) + DeleteAllCookies func() error + DeleteCookie func(name string) error + DismissAlert func() error + DoubleClick func() error + ExecuteCdpCommand func(cmd string, params map[string]interface{}) (interface{}, error) + ExecuteScript func(script string, args []interface{}) (interface{}, error) + ExecuteScriptAsync func(script string, args []interface{}) (interface{}, error) + ExecuteScriptAsyncRaw func(script string, args []interface{}) ([]byte, error) + ExecuteScriptRaw func(script string, args []interface{}) ([]byte, error) + FindElement func(by, value string) (WebElement, error) + FindElements func(by, value string) ([]WebElement, error) + Forward func() error + Get func(url string) error + GetCookie func(name string) (Cookie, error) + GetCookies func() ([]Cookie, error) + KeyDown func(keys string) error + KeyUp func(keys string) error + Log func(typ log.Type) ([]log.Message, error) + MaximizeWindow func(name string) error + NewSession func() (string, error) + PageSource func() (string, error) + Quit func() error + Refresh func() error + ResizeWindow func(name string, width, height int) error + Screenshot func() ([]byte, error) + SendModifier func(modifier string, isDown bool) error + SessionID func() string + SessionId func() string + SetAlertText func(text string) error + SetAsyncScriptTimeout func(timeout time.Duration) error + SetImplicitWaitTimeout func(timeout time.Duration) error + SetPageLoadTimeout func(timeout time.Duration) error + Status func() (*Status, error) + SwitchFrame func(frame interface{}) error + SwitchSession func(sessionID string) error + SwitchWindow func(name string) error + Title func() (string, error) + Wait func(condition Condition) error + WaitWithTimeout func(condition Condition, timeout time.Duration) error + WaitWithTimeoutAndInterval func(condition Condition, timeout, interval time.Duration) error + WindowHandles func() ([]string, error) + func NewRemote(capabilities Capabilities, urlPrefix string) (WebDriver, error) + type WebElement interface + CSSProperty func(name string) (string, error) + Clear func() error + Click func() error + FindElement func(by, value string) (WebElement, error) + FindElements func(by, value string) ([]WebElement, error) + GetAttribute func(name string) (string, error) + IsDisplayed func() (bool, error) + IsEnabled func() (bool, error) + IsSelected func() (bool, error) + Location func() (*Point, error) + LocationInView func() (*Point, error) + MoveTo func(xOffset, yOffset int) error + Screenshot func(scroll bool) ([]byte, error) + SendKeys func(keys string) error + Size func() (*Size, error) + Submit func() error + TagName func() (string, error) + Text func() (string, error)