Documentation
¶
Index ¶
- type AppInfo
- type AppInfoValue
- type Build
- type Client
- func (c *Client) AcceptAlert(accept bool) (string, error)
- func (c *Client) ActiveAppInfo() (*AppInfo, error)
- func (c *Client) CloseSession() error
- func (c *Client) CreateSession() (*Session, error)
- func (c *Client) FindElement(by, value string) (*Element, error)
- func (c *Client) GetAlertText() (string, error)
- func (c *Client) GetSettings() (*Settings, error)
- func (c *Client) Launch(bundleIdentifier string, shouldWaitForQuiescence bool, arguments []string) error
- func (c *Client) PressButton(name string) error
- func (c *Client) SendText(value string) error
- func (c *Client) SetSettings(settings Settings) error
- func (c *Client) Status() (*Status, error)
- func (c *Client) TapElement(elementId string) error
- func (c *Client) Terminate(bundleIdentifier string) error
- type Element
- type ElementButtons
- type ElementValue
- type Session
- type SessionValue
- type SettingValue
- type Settings
- type Status
- type StatusValue
- type WDAConnectHook
- type WDAError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct {
Value AppInfoValue `json:"value"`
SessionId string `json:"sessionId"`
}
type AppInfoValue ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ActiveAppInfo ¶
func (*Client) CloseSession ¶
func (*Client) CreateSession ¶
func (*Client) GetAlertText ¶
func (*Client) GetSettings ¶
func (*Client) PressButton ¶
func (*Client) SetSettings ¶
func (*Client) TapElement ¶
type Element ¶
type Element struct {
SessionId string `json:"sessionId"`
Value *ElementValue `json:"value"`
}
type ElementButtons ¶
type ElementValue ¶
type ElementValue struct {
Element string `json:"ELEMENT"`
}
type Session ¶
type Session struct {
SessionID string `json:"sessionId"`
Value SessionValue `json:"value"`
}
type SessionValue ¶
type SettingValue ¶
type SettingValue struct {
ShouldUseCompactResponses bool `json:"shouldUseCompactResponses"`
ElementResponseAttributes string `json:"elementResponseAttributes"`
MjpegServerScreenshotQuality int `json:"mjpegServerScreenshotQuality"`
MjpegServerFramerate int `json:"mjpegServerFramerate"`
MjpegScalingFactor int `json:"mjpegScalingFactor"`
ScreenshotQuality int `json:"screenshotQuality"`
KeyboardAutocorrection int `json:"keyboardAutocorrection"`
KeyboardPrediction bool `json:"keyboardPrediction"`
SnapshotTimeout int `json:"snapshotTimeout"`
CustomSnapshotTimeout int `json:"customSnapshotTimeout"`
SnapshotMaxDepth int `json:"snapshotMaxDepth"`
UseFirstMatch bool `json:"useFirstMatch"`
BoundElementsByIndex bool `json:"boundElementsByIndex"`
ReduceMotion bool `json:"reduceMotion"`
DefaultActiveApplication string `json:"defaultActiveApplication"`
ActiveAppDetectionPoint string `json:"activeAppDetectionPoint"`
IncludeNonModalElements bool `json:"includeNonModalElements"`
DefaultAlertAction string `json:"defaultAlertAction"`
AcceptAlertButtonSelector string `json:"acceptAlertButtonSelector"`
DismissAlertButtonSelector string `json:"dismissAlertButtonSelector"`
ScreenshotOrientation string `json:"screenshotOrientation"`
WaitForIdleTimeout int `json:"waitForIdleTimeout"`
AnimationCoolOffTimeout int `json:"animationCoolOffTimeout"`
}
type Status ¶
type Status struct {
SessionID string `json:"sessionId"`
Value StatusValue `json:"value"`
}
type StatusValue ¶
type WDAConnectHook ¶
type WDAConnectHook struct {
Connected chan string
}
var (
WDAHook *WDAConnectHook
)
func (*WDAConnectHook) Levels ¶
func (hook *WDAConnectHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.