mobile faq.md

Mobile FAQ

How to set up an Appium Server

Appium acts as the automation bridge between Leapwork and mobile devices.

To install locally:

  1. Install Node.js (LTS version).

  2. Run:

npm install -g appium npm install -g appium-doctor

  1. Verify with appium-doctor --android and fix any missing components (e.g., SDK tools, Java).

  2. Start Appium:

appium

It will listen on port 4723 by default. 5. Note the URL (e.g., http://127.0.0.1:4723/wd/hub) --- you'll use it in Leapwork's Mobile Device Connection.

You can also host Appium remotely or through services like HeadSpin or BrowserStack.

How to set up the Android Native Environment

To prepare your Android environment for Leapwork automation:

  1. Install Java (JDK) : Make sure JDK 8 or higher is installed. Add the Java bin folder to your system PATH.

  2. Install Android Flow and SDK Tools: Download Android Flow, which includes the SDK Manager.

  1. Set Environment Variables:
  1. Verify Setup:
  1. Optional: Install Node.js and Appium if you'll be running mobile tests locally.

Your environment is now ready to connect with Leapwork for Android automation.

How to integrate Android Device with Leapwork

Minimum Requirements

How to Do It

  1. Prepare the Android Device

  2. Open your phone's Settings.

    1. Go to About Phone and note the Device Name and Android Version.
    2. If you don't see Android Version and Build Number directly, open Software Information.
    3. Tap the Build Number seven times to enable Developer Mode.
    4. Go to Settings → System → Developer Options and ensure Developer Options are enabled.
    5. In the Developer Options , enable USB Debugging under the Debugging section.
  3. Verify Device Connection

  4. Connect the Android phone to your machine with a USB cable.

    1. Open a command prompt and run:

adb devices 3. Confirm that your device ID appears in the list as device. 4. If prompted on your phone, accept the Allow USB debugging permission.

  1. Set Up a Mobile Connection in Leapwork.
  2. Set Up Mobile Configuration in Leapwork.

Results

How to automate Android native app using Leapwork on real Android Device

Minimum Requirements

How to Do It

  1. Start the Recorder:

  2. In Leapwork Flow, select your mobile configuration from the dropdown.

    1. Create a new flow, right-click the canvas, and choose Add Building Block → Start Mobile Recorder .

    2. Your device screen will appear on your computer. Hovering over it highlights elements.

  3. Open the App Drawer:

  4. Perform a swipe gesture: click at the bottom of the screen, drag upward, and release.

    1. Choose Mobile Drawing Action when prompted and click Apply.

    2. The swipe executes on your physical device.

  5. Launch the Outlook App:

  1. Compose and Send the Email:

  2. Inside Outlook, use Mobile Action (Tap) and Set Mobile Text blocks to fill in fields: To, Subject, and Body.

    1. Tap the Send button using another Mobile Action (Tap) block.
  3. Save the recording:

  4. Hover over the bottom-left corner of the mirrored screen and click the icon to stop recording.

    1. Select Save and Close Recorder to generate the flow automatically.

Results

How to set up the Android Native Environment

Minimum Requirements

How to Do It

  1. Install the Java Development Kit (JDK):
  1. Install Android SDK (Command Line Tools):
  1. Install Android Flow:
  1. Set Android Environment Variables:
  1. Verify the Setup

Results

How to automate Native, Hybrid and Mobile Web Applications in Leapwork?

With Leapwork's no-code automation platform, you can easily test native and mobile web applications across different devices.

Many organizations rely on mobile apps for critical operations but still struggle to automate testing for native iOS and Android apps on real devices. Leapwork makes this process simple and visual.

Automating mobile web applications

To automate a mobile web app on Android or iPhone:

  1. In the Start Web Browser block, open the Device Type dropdown.

  2. Select the device you want to test on, such as Apple iPhone4.

  3. Capture elements and build your flow just as you would with any regular web page.

(Example: elements on the simulated iPhone can be captured like standard web elements.)

Automating native and hybrid mobile apps

Leapwork also supports testing native and hybrid mobile applications on real devices.

You can use BrowserStack App Live or Sauce Labs to access real mobile devices and run tests through Leapwork.

Steps:

  1. Open BrowserStack App Live (or Sauce Labs) and select a device.

  2. Launch the mobile app you want to test.

  3. Use Leapwork's Image and Text Recognition blocks to automate interactions with the app interface.

(Example: these blocks can recognize and interact with buttons, icons, and text on the screen.)