Documentation
¶
Overview ¶
Package api provides a generic, low-level WebDriver API client for Go. All methods map directly to endpoints of the WebDriver Wire Protocol: https://code.google.com/p/selenium/wiki/JsonWireProtocol
Index ¶
- type Element
- func (e *Element) Clear() error
- func (e *Element) Click() error
- func (e *Element) GetAttribute(attribute string) (string, error)
- func (e *Element) GetCSS(property string) (string, error)
- func (e *Element) GetElement(selector Selector) (*Element, error)
- func (e *Element) GetElements(selector Selector) ([]*Element, error)
- func (e *Element) GetText() (string, error)
- func (e *Element) IsDisplayed() (bool, error)
- func (e *Element) IsEnabled() (bool, error)
- func (e *Element) IsEqualTo(other *Element) (bool, error)
- func (e *Element) IsSelected() (bool, error)
- func (e *Element) Submit() error
- func (e *Element) Value(text string) error
- type Log
- type Offset
- type Selector
- type Session
- func (s *Session) AcceptAlert() error
- func (s *Session) Back() error
- func (s *Session) Delete() error
- func (s *Session) DeleteCookie(cookieName string) error
- func (s *Session) DeleteCookies() error
- func (s *Session) DeleteWindow() error
- func (s *Session) DismissAlert() error
- func (s *Session) DoubleClick() error
- func (s *Session) Execute(body string, arguments []interface{}, result interface{}) error
- func (s *Session) Forward() error
- func (s *Session) Frame(frame *Element) error
- func (s *Session) FrameParent() error
- func (s *Session) GetActiveElement() (*Element, error)
- func (s *Session) GetAlertText() (string, error)
- func (s *Session) GetElement(selector Selector) (*Element, error)
- func (s *Session) GetElements(selector Selector) ([]*Element, error)
- func (s *Session) GetLogTypes() ([]string, error)
- func (s *Session) GetScreenshot() ([]byte, error)
- func (s *Session) GetSource() (string, error)
- func (s *Session) GetTitle() (string, error)
- func (s *Session) GetURL() (string, error)
- func (s *Session) GetWindow() (*Window, error)
- func (s *Session) GetWindows() ([]*Window, error)
- func (s *Session) MoveTo(region *Element, offset Offset) error
- func (s *Session) NewLogs(logType string) ([]Log, error)
- func (s *Session) Refresh() error
- func (s *Session) SetAlertText(text string) error
- func (s *Session) SetCookie(cookie map[string]interface{}) error
- func (s *Session) SetURL(url string) error
- func (s *Session) SetWindow(window *Window) error
- func (s *Session) SetWindowByName(name string) error
- type WebDriver
- type Window
- type XOffset
- type XYOffset
- type YOffset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
Bus busSender
}
func (*Session) AcceptAlert ¶
func (*Session) DeleteCookie ¶
func (*Session) DeleteCookies ¶
func (*Session) DeleteWindow ¶
func (*Session) DismissAlert ¶
func (*Session) DoubleClick ¶
func (*Session) FrameParent ¶
func (*Session) GetActiveElement ¶
func (*Session) GetAlertText ¶
func (*Session) GetLogTypes ¶
func (*Session) GetScreenshot ¶
func (*Session) GetWindows ¶
func (*Session) SetAlertText ¶
func (*Session) SetWindowByName ¶
type WebDriver ¶
type WebDriver struct { Timeout time.Duration Service driverService // contains filtered or unexported fields }
func NewWebDriver ¶
Click to show internal directories.
Click to hide internal directories.