mobile

package
v3.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2018 License: MIT Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

type ActionOptions

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

type Session struct {
	*api.Session
}

func (*Session) CloseApp

func (s *Session) CloseApp() error

func (*Session) GetAppStrings

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

func (*Session) GetCurrentActivity

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

func (*Session) GetSettings

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

func (*Session) InstallApp

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

func (*Session) IsAppInstalled

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

func (*Session) LaunchApp

func (s *Session) LaunchApp() error

func (*Session) Lock

func (s *Session) Lock() error

func (*Session) OpenNotifications

func (s *Session) OpenNotifications() error

func (*Session) PerformTouch

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

func (*Session) RemoveApp

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

func (*Session) ReplaceValue

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

func (*Session) Reset

func (s *Session) Reset() error

func (*Session) Shake

func (s *Session) Shake() error

func (*Session) ToggleLocationServices

func (s *Session) ToggleLocationServices() error

func (*Session) UpdateSettings

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL