airtest.core.error module

error classes

exception BaseError(value)[source]

Bases: Exception

exception AirtestError(value)[source]

Bases: BaseError

This is Airtest BaseError

exception InvalidMatchingMethodError(value)[source]

Bases: BaseError

This is InvalidMatchingMethodError BaseError When an invalid matching method is used in settings.

exception TargetNotFoundError(value)[source]

Bases: AirtestError

This is TargetNotFoundError BaseError When something is not found

exception ScriptParamError(value)[source]

Bases: AirtestError

This is ScriptParamError BaseError When something goes wrong

exception AdbError(stdout, stderr)[source]

Bases: Exception

This is AdbError BaseError When ADB have something wrong

exception AdbShellError(stdout, stderr)[source]

Bases: AdbError

adb shell error

exception DeviceConnectionError(value)[source]

Bases: BaseError

device connection error

DEVICE_CONNECTION_ERROR = "error:\\s*((device \\'\\S+\\' not found)|(cannot connect to daemon at [\\w\\:\\s\\.]+ Connection timed out))"
exception NoDeviceError(value)[source]

Bases: BaseError

When no device is connected

exception ICmdError(stdout, stderr)[source]

Bases: Exception

This is ICmdError BaseError When ICmd have something wrong

exception ScreenError(value)[source]

Bases: BaseError

When the screen capture method(Minicap/Javacap/ScreenProxy) has something wrong

exception MinicapError(value)[source]

Bases: ScreenError

This is MinicapError BaseError When Minicap have something wrong

exception MinitouchError(value)[source]

Bases: BaseError

This is MinitouchError BaseError When Minicap have something wrong

exception PerformanceError(value)[source]

Bases: BaseError

exception LocalDeviceError(value='Can only use this method on a local device.')[source]

Bases: BaseError

Custom exception for calling a method on a non-local iOS device.