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) 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) Delete() error
- func (s *Session) DeleteCookie(name 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 *api.Element) error
- func (s *Session) FrameParent() error
- func (s *Session) GetActiveElement() (*api.Element, error)
- func (s *Session) GetAlertText() (string, 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 map[string]interface{}) error
- func (s *Session) SetURL(url string) error
- func (s *Session) SetWindow(window *api.Window) error
- func (s *Session) SetWindowByName(name string) 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 } GetTextCall struct { ReturnText 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 } }
func (*Element) GetElement ¶
func (*Element) GetElements ¶
func (*Element) IsDisplayed ¶
func (*Element) IsSelected ¶
type ElementRepository ¶
type ElementRepository struct { GetCall struct { Selectors target.Selectors ReturnElements []element.Element Err error } GetExactlyOneCall struct { Selectors target.Selectors ReturnElement element.Element Err error } GetAtLeastOneCall struct { Selectors target.Selectors ReturnElements []element.Element Err error } }
func (*ElementRepository) GetAtLeastOne ¶
func (*ElementRepository) GetExactlyOne ¶
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 } SetCookieCall struct { Cookie map[string]interface{} 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 } DoubleClickCall struct { Called bool 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 } }
func (*Session) AcceptAlert ¶
func (*Session) DeleteCookie ¶
func (*Session) DeleteCookies ¶
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) SetWindowByName ¶
Click to show internal directories.
Click to hide internal directories.