ios

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RunnerStartTimeout = startTimeout

Variables

This section is empty.

Functions

func BuildID

func BuildID() string

func KeyCode

func KeyCode(key string) (int, bool)

func ReleaseDevice added in v0.3.0

func ReleaseDevice(ctx context.Context, udid string) error

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, info device.Info) (*Driver, error)

func (*Driver) AddMedia

func (d *Driver) AddMedia(ctx context.Context, paths []string) error

func (*Driver) AppLog added in v0.8.0

func (d *Driver) AppLog(ctx context.Context, appID string, last time.Duration) (driver.AppLog, error)

func (*Driver) AppState

func (d *Driver) AppState(ctx context.Context, bundleID string) (int, error)

func (*Driver) ClearKeychain

func (d *Driver) ClearKeychain(ctx context.Context) error

func (*Driver) ClearState

func (d *Driver) ClearState(ctx context.Context, appID string) error

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) Conn

func (d *Driver) Conn() *wire.Conn

func (*Driver) DarkMode

func (d *Driver) DarkMode(ctx context.Context) (bool, error)

func (*Driver) Delivery added in v0.6.0

func (d *Driver) Delivery(ctx context.Context, token int64, wait time.Duration) (driver.DeliveryVerdict, error)

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) Events

func (d *Driver) Events() (<-chan driver.Event, func())

func (*Driver) Foreground

func (d *Driver) Foreground(ctx context.Context) (string, error)

func (*Driver) HideKeyboard

func (d *Driver) HideKeyboard(ctx context.Context) error

func (*Driver) InstallApp

func (d *Driver) InstallApp(ctx context.Context, path string) error

func (*Driver) Keep added in v0.3.0

func (d *Driver) Keep(ctx context.Context) error

func (*Driver) KillApp

func (d *Driver) KillApp(ctx context.Context, appID string) error

func (*Driver) LaunchApp

func (d *Driver) LaunchApp(ctx context.Context, appID string, o driver.LaunchOpts) error

func (*Driver) LaunchWithXCTest

func (d *Driver) LaunchWithXCTest(ctx context.Context, bundleID string, args []string, env map[string]string) error

func (*Driver) LongPress

func (d *Driver) LongPress(ctx context.Context, x, y int, hold time.Duration, o driver.ActionOpts) (driver.ActionResult, error)

func (*Driver) Lost added in v0.5.3

func (d *Driver) Lost() error

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Notes added in v0.5.3

func (d *Driver) Notes() []string
func (d *Driver) OpenLink(ctx context.Context, link, appID string, autoVerify, browser bool) error

func (*Driver) Platform

func (d *Driver) Platform() string

func (*Driver) Port

func (d *Driver) Port() int

func (*Driver) PressKey

func (d *Driver) PressKey(ctx context.Context, key string, o driver.ActionOpts) (driver.ActionResult, error)

func (*Driver) Raw

func (d *Driver) Raw(ctx context.Context, op string, p map[string]any) (json.RawMessage, error)

func (*Driver) RecordingMark added in v0.6.2

func (d *Driver) RecordingMark() (time.Time, time.Duration, bool)

func (*Driver) RecordingStarted added in v0.6.0

func (d *Driver) RecordingStarted() time.Time

func (*Driver) Release added in v0.3.0

func (d *Driver) Release(ctx context.Context) error

func (*Driver) Screen

func (d *Driver) Screen(ctx context.Context) (*ui.Screen, error)

func (*Driver) Screenshot

func (d *Driver) Screenshot(ctx context.Context, scale float64, format string) ([]byte, error)

func (*Driver) Seq

func (d *Driver) Seq() int64

func (*Driver) Serial

func (d *Driver) Serial() string

func (*Driver) SetAirplaneMode

func (d *Driver) SetAirplaneMode(ctx context.Context, on bool) error

func (*Driver) SetDarkMode

func (d *Driver) SetDarkMode(ctx context.Context, on bool) error

func (*Driver) SetLocation

func (d *Driver) SetLocation(ctx context.Context, lat, lon float64) error

func (*Driver) SetOrientation

func (d *Driver) SetOrientation(ctx context.Context, orientation string) error

func (*Driver) SetPermissions

func (d *Driver) SetPermissions(ctx context.Context, appID string, perms map[string]string) error

func (*Driver) Settle

func (d *Driver) Settle(ctx context.Context, since int64, noChangeMs int, timeout time.Duration) (driver.SettleResult, error)

func (*Driver) Size

func (d *Driver) Size() (int, int)

func (*Driver) StallSince added in v0.5.3

func (d *Driver) StallSince(t time.Time) driver.Stall

func (*Driver) StartRecording

func (d *Driver) StartRecording(ctx context.Context, path string) error

func (*Driver) StopApp

func (d *Driver) StopApp(ctx context.Context, appID string) error

func (*Driver) StopRecording

func (d *Driver) StopRecording(ctx context.Context) error

func (*Driver) StopRunner

func (d *Driver) StopRunner() error

func (*Driver) Swipe

func (d *Driver) Swipe(ctx context.Context, x1, y1, x2, y2 int, dur time.Duration, o driver.ActionOpts) (driver.ActionResult, error)

func (*Driver) Tap

func (*Driver) ToggleAirplaneMode

func (d *Driver) ToggleAirplaneMode(ctx context.Context) error

func (*Driver) TypeText

func (d *Driver) TypeText(ctx context.Context, text string, o driver.ActionOpts) (driver.ActionResult, error)

func (*Driver) WaitForApp

func (d *Driver) WaitForApp(ctx context.Context, appID string, timeout time.Duration) error

func (*Driver) WaitSettled

func (d *Driver) WaitSettled(ctx context.Context, timeout time.Duration) error

Jump to

Keyboard shortcuts

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