Documentation
¶
Index ¶
- Constants
- func BuildID() string
- func KeyCode(key string) (int, bool)
- func ReleaseDevice(ctx context.Context, udid string) error
- type Driver
- func (d *Driver) AddMedia(ctx context.Context, paths []string) error
- func (d *Driver) AppLog(ctx context.Context, appID string, last time.Duration) (driver.AppLog, error)
- func (d *Driver) AppState(ctx context.Context, bundleID string) (int, error)
- func (d *Driver) ClearKeychain(ctx context.Context) error
- func (d *Driver) ClearState(ctx context.Context, appID string) error
- func (d *Driver) Close() error
- func (d *Driver) Conn() *wire.Conn
- func (d *Driver) DarkMode(ctx context.Context) (bool, error)
- func (d *Driver) Delivery(ctx context.Context, token int64, wait time.Duration) (driver.DeliveryVerdict, error)
- func (d *Driver) DoubleTap(ctx context.Context, x, y int, o driver.ActionOpts) (driver.ActionResult, error)
- func (d *Driver) EraseText(ctx context.Context, n int, o driver.ActionOpts) (driver.ActionResult, error)
- func (d *Driver) Events() (<-chan driver.Event, func())
- func (d *Driver) Foreground(ctx context.Context) (string, error)
- func (d *Driver) HideKeyboard(ctx context.Context) error
- func (d *Driver) InstallApp(ctx context.Context, path string) error
- func (d *Driver) Keep(ctx context.Context) error
- func (d *Driver) KillApp(ctx context.Context, appID string) error
- func (d *Driver) LaunchApp(ctx context.Context, appID string, o driver.LaunchOpts) error
- func (d *Driver) LaunchWithXCTest(ctx context.Context, bundleID string, args []string, env map[string]string) error
- func (d *Driver) LongPress(ctx context.Context, x, y int, hold time.Duration, o driver.ActionOpts) (driver.ActionResult, error)
- func (d *Driver) Lost() error
- func (d *Driver) Name() string
- func (d *Driver) Notes() []string
- func (d *Driver) OpenLink(ctx context.Context, link, appID string, autoVerify, browser bool) error
- func (d *Driver) Platform() string
- func (d *Driver) Port() int
- func (d *Driver) PressKey(ctx context.Context, key string, o driver.ActionOpts) (driver.ActionResult, error)
- func (d *Driver) Raw(ctx context.Context, op string, p map[string]any) (json.RawMessage, error)
- func (d *Driver) RecordingMark() (time.Time, time.Duration, bool)
- func (d *Driver) RecordingStarted() time.Time
- func (d *Driver) Release(ctx context.Context) error
- func (d *Driver) Screen(ctx context.Context) (*ui.Screen, error)
- func (d *Driver) Screenshot(ctx context.Context, scale float64, format string) ([]byte, error)
- func (d *Driver) Seq() int64
- func (d *Driver) Serial() string
- func (d *Driver) SetAirplaneMode(ctx context.Context, on bool) error
- func (d *Driver) SetDarkMode(ctx context.Context, on bool) error
- func (d *Driver) SetLocation(ctx context.Context, lat, lon float64) error
- func (d *Driver) SetOrientation(ctx context.Context, orientation string) error
- func (d *Driver) SetPermissions(ctx context.Context, appID string, perms map[string]string) error
- func (d *Driver) Settle(ctx context.Context, since int64, noChangeMs int, timeout time.Duration) (driver.SettleResult, error)
- func (d *Driver) Size() (int, int)
- func (d *Driver) StallSince(t time.Time) driver.Stall
- func (d *Driver) StartRecording(ctx context.Context, path string) error
- func (d *Driver) StopApp(ctx context.Context, appID string) error
- func (d *Driver) StopRecording(ctx context.Context) error
- func (d *Driver) StopRunner() error
- func (d *Driver) Swipe(ctx context.Context, x1, y1, x2, y2 int, dur time.Duration, ...) (driver.ActionResult, error)
- func (d *Driver) Tap(ctx context.Context, x, y int, o driver.ActionOpts) (driver.ActionResult, error)
- func (d *Driver) ToggleAirplaneMode(ctx context.Context) error
- func (d *Driver) TypeText(ctx context.Context, text string, o driver.ActionOpts) (driver.ActionResult, error)
- func (d *Driver) WaitForApp(ctx context.Context, appID string, timeout time.Duration) error
- func (d *Driver) WaitSettled(ctx context.Context, timeout time.Duration) error
Constants ¶
View Source
const RunnerStartTimeout = startTimeout
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) DoubleTap ¶
func (d *Driver) DoubleTap(ctx context.Context, x, y int, o driver.ActionOpts) (driver.ActionResult, error)
func (*Driver) EraseText ¶
func (d *Driver) EraseText(ctx context.Context, n int, o driver.ActionOpts) (driver.ActionResult, error)
func (*Driver) LaunchWithXCTest ¶
func (*Driver) PressKey ¶
func (d *Driver) PressKey(ctx context.Context, key string, o driver.ActionOpts) (driver.ActionResult, error)
func (*Driver) RecordingMark ¶ added in v0.6.2
func (*Driver) RecordingStarted ¶ added in v0.6.0
func (*Driver) Screenshot ¶
func (*Driver) SetAirplaneMode ¶
func (*Driver) SetLocation ¶
func (*Driver) SetOrientation ¶
func (*Driver) SetPermissions ¶
func (*Driver) StartRecording ¶
func (*Driver) StopRunner ¶
func (*Driver) Tap ¶
func (d *Driver) Tap(ctx context.Context, x, y int, o driver.ActionOpts) (driver.ActionResult, error)
func (*Driver) TypeText ¶
func (d *Driver) TypeText(ctx context.Context, text string, o driver.ActionOpts) (driver.ActionResult, error)
func (*Driver) WaitForApp ¶
Click to show internal directories.
Click to hide internal directories.