Android Convenience API

Note: The Android Convenience API is only available in Squish for Android.

GestureBuilder class

Represents a sequence of touch strokes.

UiAutomator class

Support for automating Android UiAutomator objects.

WebView.evalJS(script)

Returns the result of evaluating a JavaScript expression.

androidUiAutomator()

Returns a UiAutomator object.

defaultDevice property

Default Android device.

doubleTap(objectOrName)

Double-taps on a specified widget.

gesture(objectOrName, touches)

Plays a gesture.

goBack(objectOrName)

Taps the Android 'back' button.

goHome()

Taps the Android 'home' button.

goNotifications()

Opens the Android notifications.

goQuickSettings()

Opens Android quick settings.

goRecents()

Taps the Android 'recents' button.

hideKeyboard(object)

Hides the soft keyboard if it is showing.

installEventHandler()

Installs a global event handler.

longPress()

Presses for 2s before releasing.

longPressAndDrag()

Performs a touch drag operation.

nativeObject property

Provides access to an object's underlying native methods and properties.

nativeTap(x,y)

Performs a shell-level tap.

openMenu(objectOrName)

Taps the Android 'menu' button.

readGesture(gesture-file)

Returns a GestureBuilder after reading it from a file.

startObserver()

Starts the androidobserver process.

stopObserver()

Stops the androidobserver process.

tapMenuItem(objectOrName)

Performs a menu action.

tapObject(objectOrName)

Taps on the specified object.

touchAndDrag()

Performs a touch drag operation.

type(objectOrName, text)

Types text into an editable widget.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Search Results