Mobile Automation Step wise Configuration in Uipath | How to Connect Real Mobile Device with Uipath

Description

how to connect a real Android mobile device on UiPath

The Android Automation Activities allows users to automate UI actions like tapping, swiping, entering/getting text, and taking a screenshot on an Android emulator or physical device using UiPath Studio and Appium, a test framework for mobile devices. The Android Emulator Scope will handle the connection between the device and Appium and launch the app/activity you’d like to run on the device. UI actions can be performed by dragging and dropping the appropriate activity into the scope and entering the selector/coordinates of the target UI element. Through this activity, you will be able to create workflows that interact with mobile applications and mobile browsers with relative ease.

For Using Mobile Automation in UiPath we have to integrate multiple dependency applications in UiPath for complete configuration use the below commands and setup:

Appium Configuration with Physical Device

  1. Install Java (JDK) :- https://www.oracle.com/java/technolog
    Setup Java Environment Variable.
    :black_small_square: Create JAVA_HOME system environment variable and set it to JDK path (without bin folder)
    :black_small_square: Edit the Path system environment variable and add %JAVA_HOME%\bin

  2. Install Android Studio:- https://developer.android.com/studio
    Setup Android Environment Variable
    :black_small_square: Create an ANDROID_HOME system environment variable and set it to SDK path.
    :black_small_square: Edit the Path system environment variable and add below
    %ANDROID_HOME%\plateform-tools
    %ANDROID_HOME%\tools
    %ANDROID_HOME%\tools\bin

Step-by-step installation of Appium Using NPM

  1. Check if node and NPM are already installed or not in our system. Open cmd and type commands one by one. If the version is showing in cmd then node and NPM are already installed.
    a. node -v
    b. npm -v
  2. If node and NPM are not installed in the system then download node.js and install. The download link is:- Node.js — Run JavaScript Everywhere
  3. Command to install Appium using NMP. Open cmd and type the following command:- npm install -g appium and wait to download the Appium.
  4. Command to start Appium. Open cmd and type the following command to start Appium:- appium

Verify Installation using Appium-doctor

Command to install Appium-doctor:- npm install -g appium-doctor
Command to get Appium-doctor help:- appium-doctor –help
Command to check android setup:- appium-doctor --android
Command to check iOS setup:- appium-doctor --ios

Step-by-step installation of Appium Using Appium Desktop

Step 1: Go to the following link:- http://appium.io/ and click on the Download Appium button.
Step 2: For Windows OS, download the exe file of Appium desktop setup.
Step 3: After downloading the exe file, double-click on the downloaded file to run.
Step 4: Now, Appium Desktop UI will appear on the screen containing the default Host and Port, which can be changed.
Default Host - 0.0.0.0
Default Port - 4723
Click on the Start Server button and start Appium Server.

Enable USB debugging on Android mobile

On your phone, go to setting click the system option
Click the About Phone option
Click on Build Number 7 to 8 times
Go back to settings and open Developer Options Enable USB Debugging.

App:- https://uipathtestappsto.blob.core.wi
App Package:- io.cloudgrey.the_app
App Activity:-.MainActivity

In this session, I have explained how to do mobile automation with UiPath and its flow.

Link

Date

2025-02-13

Related UiPath products

Mobile Automation