agouti: Index | Files

package mobile

import ""


Package Files


type Action Uses

type Action struct {
    Action  string        `json:"action"`
    Options ActionOptions `json:"options,omitempty"`

type ActionOptions Uses

type ActionOptions struct {
    // TODO: check which means what, what are the differences between ms and duration ?
    Duration    int    `json:"duration,omitempty"` // which units ??
    Millisecond int    `json:"ms,omitempty"`       // duplicates with Duration ??
    X           int    `json:"x,omitempty"`
    Y           int    `json:"y,omitempty"`
    Element     string `json:"element,omitempty"` // element ID
    Count       int    `json:"count,omitempty"`   // meaning ??

type Session Uses

type Session struct {

func (*Session) CloseApp Uses

func (s *Session) CloseApp() error

func (*Session) GetAppStrings Uses

func (s *Session) GetAppStrings(language string) ([]string, error)

func (*Session) GetCurrentActivity Uses

func (s *Session) GetCurrentActivity() (string, error)

func (*Session) GetSettings Uses

func (s *Session) GetSettings() (map[string]interface{}, error)

func (*Session) InstallApp Uses

func (s *Session) InstallApp(appPath string) error

func (*Session) IsAppInstalled Uses

func (s *Session) IsAppInstalled(bundleId string) (bool, error)

func (*Session) LaunchApp Uses

func (s *Session) LaunchApp() error

func (*Session) Lock Uses

func (s *Session) Lock() error

func (*Session) OpenNotifications Uses

func (s *Session) OpenNotifications() error

func (*Session) PerformTouch Uses

func (s *Session) PerformTouch(actions []Action) error

func (*Session) RemoveApp Uses

func (s *Session) RemoveApp(appId string) error

func (*Session) ReplaceValue Uses

func (s *Session) ReplaceValue(elementID, newValue string) error

func (*Session) Reset Uses

func (s *Session) Reset() error

func (*Session) Shake Uses

func (s *Session) Shake() error

func (*Session) ToggleLocationServices Uses

func (s *Session) ToggleLocationServices() error

func (*Session) UpdateSettings Uses

func (s *Session) UpdateSettings(settings map[string]interface{}) error

Package mobile imports 1 packages (graph) and is imported by 17 packages. Updated 2016-07-31. Refresh now. Tools for package owners.