Documentation ¶
Index ¶
- type Bus
- 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 api.Selector) (*api.Element, error)
- func (e *Element) GetElements(selector api.Selector) ([]*api.Element, error)
- func (e *Element) GetID() string
- func (e *Element) GetLocation() (x, y int, err error)
- func (e *Element) GetName() (string, error)
- func (e *Element) GetText() (string, error)
- func (e *Element) IsDisplayed() (bool, error)
- func (e *Element) IsEnabled() (bool, error)
- func (e *Element) IsEqualTo(other *api.Element) (bool, error)
- func (e *Element) IsSelected() (bool, error)
- func (e *Element) Submit() error
- func (e *Element) Value(text string) error
- type ElementRepository
- type Session
- func (s *Session) AcceptAlert() error
- func (s *Session) Back() error
- func (s *Session) ButtonDown(button api.Button) error
- func (s *Session) ButtonUp(button api.Button) error
- func (s *Session) Click(button api.Button) error
- func (s *Session) Delete() error
- func (s *Session) DeleteCookie(name string) error
- func (s *Session) DeleteCookies() error
- func (s *Session) DeleteLocalStorage() error
- func (s *Session) DeleteSessionStorage() 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 *api.Element) error
- func (s *Session) FrameParent() error
- func (s *Session) GetActiveElement() (*api.Element, error)
- func (s *Session) GetAlertText() (string, error)
- func (s *Session) GetCookies() ([]*api.Cookie, error)
- func (s *Session) GetElement(selector api.Selector) (*api.Element, error)
- func (s *Session) GetElements(selector api.Selector) ([]*api.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() (*api.Window, error)
- func (s *Session) GetWindows() ([]*api.Window, error)
- func (s *Session) MoveTo(element *api.Element, offset api.Offset) error
- func (s *Session) NewLogs(logType string) ([]api.Log, error)
- func (s *Session) Refresh() error
- func (s *Session) SetAlertText(text string) error
- func (s *Session) SetCookie(cookie *api.Cookie) error
- func (s *Session) SetImplicitWait(timeout int) error
- func (s *Session) SetPageLoad(timeout int) error
- func (s *Session) SetScriptTimeout(timeout int) error
- func (s *Session) SetURL(url string) error
- func (s *Session) SetWindow(window *api.Window) error
- func (s *Session) SetWindowByName(name string) error
- func (s *Session) TouchClick(element *api.Element) error
- func (s *Session) TouchDoubleClick(element *api.Element) error
- func (s *Session) TouchDown(x, y int) error
- func (s *Session) TouchFlick(element *api.Element, offset api.Offset, speed api.Speed) error
- func (s *Session) TouchLongClick(element *api.Element) error
- func (s *Session) TouchMove(x, y int) error
- func (s *Session) TouchScroll(element *api.Element, offset api.Offset) error
- func (s *Session) TouchUp(x, y int) error
- type WebDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Element ¶
type Element struct { GetElementCall struct { Selector api.Selector ReturnElement *api.Element Err error } GetElementsCall struct { Selector api.Selector ReturnElements []*api.Element Err error } GetIDCall struct { ReturnText string } GetTextCall struct { ReturnText string Err error } GetNameCall struct { ReturnName string Err error } GetAttributeCall struct { Attribute string ReturnValue string Err error } GetCSSCall struct { Property string ReturnValue string Err error } ClickCall struct { Called bool Err error } ClearCall struct { Called bool Err error } ValueCall struct { Text string Err error } IsSelectedCall struct { ReturnSelected bool Err error } IsDisplayedCall struct { ReturnDisplayed bool Err error } IsEnabledCall struct { ReturnEnabled bool Err error } SubmitCall struct { Called bool Err error } IsEqualToCall struct { Element *api.Element ReturnEquals bool Err error } GetLocationCall struct { ReturnX int ReturnY int Err error } }
func (*Element) GetElement ¶
func (*Element) GetElements ¶
func (*Element) GetLocation ¶
func (*Element) IsDisplayed ¶
func (*Element) IsSelected ¶
type ElementRepository ¶
type ElementRepository struct { GetCall struct { ReturnElements []element.Element Err error } GetExactlyOneCall struct { ReturnElement element.Element Err error } GetAtLeastOneCall struct { ReturnElements []element.Element Err error } }
func (*ElementRepository) GetAtLeastOne ¶
func (e *ElementRepository) GetAtLeastOne() ([]element.Element, error)
func (*ElementRepository) GetExactlyOne ¶
func (e *ElementRepository) GetExactlyOne() (element.Element, error)
type Session ¶
type Session struct { GetElementCall struct { Selector api.Selector ReturnElement *api.Element Err error } GetElementsCall struct { Selector api.Selector ReturnElements []*api.Element Err error } GetActiveElementCall struct { ReturnElement *api.Element Err error } DeleteCall struct { Called bool Err error } GetWindowCall struct { ReturnWindow *api.Window Err error } GetWindowsCall struct { ReturnWindows []*api.Window Err error } SetWindowCall struct { Window *api.Window Err error } SetWindowByNameCall struct { Name string Err error } DeleteWindowCall struct { Called bool Err error } GetScreenshotCall struct { ReturnImage []byte Err error } GetCookiesCall struct { ReturnCookies []*api.Cookie Err error } SetCookieCall struct { Cookie *api.Cookie Err error } DeleteCookieCall struct { Name string Err error } DeleteCookiesCall struct { Called bool Err error } GetURLCall struct { ReturnURL string Err error } SetURLCall struct { URL string Err error } GetTitleCall struct { ReturnTitle string Err error } GetSourceCall struct { ReturnSource string Err error } MoveToCall struct { Element *api.Element Offset api.Offset Err error } FrameCall struct { Frame *api.Element Err error } FrameParentCall struct { Called bool Err error } ExecuteCall struct { Body string Arguments []interface{} Result string Err error } ForwardCall struct { Called bool Err error } BackCall struct { Called bool Err error } RefreshCall struct { Called bool Err error } GetAlertTextCall struct { ReturnText string Err error } SetAlertTextCall struct { Text string Err error } AcceptAlertCall struct { Called bool Err error } DismissAlertCall struct { Called bool Err error } NewLogsCall struct { LogType string ReturnLogs []api.Log Err error } GetLogTypesCall struct { ReturnTypes []string Err error } DoubleClickCall struct { Called bool Err error } ClickCall struct { Button api.Button Err error } ButtonDownCall struct { Button api.Button Err error } ButtonUpCall struct { Button api.Button Err error } TouchDownCall struct { X int Y int Err error } TouchUpCall struct { X int Y int Err error } TouchMoveCall struct { X int Y int Err error } TouchScrollCall struct { Element *api.Element Offset api.Offset Err error } TouchClickCall struct { Element *api.Element Err error } TouchFlickCall struct { Element *api.Element Offset api.Offset Speed api.Speed Err error } TouchDoubleClickCall struct { Element *api.Element Err error } TouchLongClickCall struct { Element *api.Element Err error } DeleteLocalStorageCall struct { Called bool Err error } DeleteSessionStorageCall struct { Called bool Err error } SetImplicitWaitCall struct { Called bool Err error } SetPageLoadCall struct { Called bool Err error } SetScriptTimeoutCall struct { Called bool Err error } }
func (*Session) AcceptAlert ¶
func (*Session) DeleteCookie ¶
func (*Session) DeleteCookies ¶
func (*Session) DeleteLocalStorage ¶
func (*Session) DeleteSessionStorage ¶
func (*Session) DeleteWindow ¶
func (*Session) DismissAlert ¶
func (*Session) DoubleClick ¶
func (*Session) FrameParent ¶
func (*Session) GetAlertText ¶
func (*Session) GetElement ¶
func (*Session) GetElements ¶
func (*Session) GetLogTypes ¶
func (*Session) GetScreenshot ¶
func (*Session) SetAlertText ¶
func (*Session) SetImplicitWait ¶
func (*Session) SetPageLoad ¶
func (*Session) SetScriptTimeout ¶
func (*Session) SetWindowByName ¶
func (*Session) TouchFlick ¶
func (*Session) TouchScroll ¶
Click to show internal directories.
Click to hide internal directories.