Skip to main content

SeeTest Client - DeviceAction

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

Description

Executes the chosen action on the device. Used to simulate physical actions on the device

Parameters

  • Action - The action to perform, of the following list, only if it is supported by the OS:
    • Home 

      - Click the Home button

    • Back

      - Click the Back button

    • Power

      - Click on Power key

    • Landscape

      - Change orientation to landscape mode

    • Portrait

      - Change orientation to portrait mode

    • Change Orientation

      - Toggle orientation

    • Menu

      - Click the Menu button

    • Unlock

      - Unlock the device

    • Wake

      - Wakes the device

    • Paste

      - Paste text from clipboard

    • Volume Up

      - Click Volume Up button

    • Volume Down

      - Click Volume Down button

    • Recent Apps

       - Show recent apps

Code Examples

Java Example

 client.deviceAction("Home");

C# Example Expand source

  client.DeviceAction("Home");

VBScript Example Expand source

 client.DeviceAction "Home"

Python Example Expand source

 self.client.deviceAction("Home")

Perl Example Expand source

 $client->deviceAction("Home");