Agent FAQ | Leapwork Docs

What Windows authentication types does the Remote Agent support?

Leapwork supports three Windows authentication methods to connect to a VM running the Remote Agent service:

All three methods work on VMs without an active user session, starting from Windows 7 SP1. This simplifies automation on virtual machines and SSO testing.

Note: This feature uses Windows' built-in credential provider and does not bypass any security layers.

Granting local log-in rights to a non-admin user

If a non-admin user needs access to the agent machine, grant them Allow log on locally rights:

  1. Open the Run dialog (Windows + R), type gpedit.msc, and press Enter.

  2. Navigate to: Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment

  3. Right-click Allow log on locally and select Properties.

  4. Click Add User or Group, add the user, and apply the changes.

  5. Restart the machine.

How do I run test cases on a remote computer?

To run tests remotely, install the Leapwork Agent on one or more dedicated machines. This offloads test execution from your local computer and allows for parallel test runs across multiple machines.

How do I set up Selenium Grid (general)?

Selenium Grid lets you run tests in parallel across different browsers and operating systems, speeding up execution and supporting multi-browser environments.

  1. Download and Prepare Files
  1. Set Up the Hub
  1. Set Up the Node
  1. Connect Leapwork

Configure Leapwork to run tests on your grid using the integration article. You can scale by adding more nodes on different machines.

How do I configure Selenium Grid on macOS (Safari/Chrome/Firefox)?

Selenium Grid allows you to run tests in parallel across multiple browsers and OSs, helping reduce test execution time.

  1. Download Required Files
  1. Driver Configuration

Move the drivers to /usr/local/bin:


  1. Safari Setup

  1. Set Up Selenium Grid

Verify the grid at: http://localhost:4444/grid/console

  1. Connect to Leapwork

Once the grid is running, configure Leapwork to run your tests using the related setup article.

How do I connect Leapwork with the Gridlastic cloud agent (Selenium 4)?

Leapwork integrates with cloud providers like Gridlastic, which offers on-demand Selenium Grid infrastructure. This allows you to run Leapwork flows across different devices, browsers, and operating systems.

Follow these steps to connect Leapwork:

  1. Log in to your Gridlastic dashboard.

  2. Go to Grid Configurations in the left panel.

  3. From the Selenium Version dropdown, select 4.7.0.

  4. Click Launch Grid. The grid will generate:

    • Subdomain
    • Username
    • Password / Access Key
  5. In Leapwork Agent settings, create a new Gridlastic agent using these details.

How do I change the Agent port?

By default, the Leapwork Agent uses port 6777. If another application is using it, the Agent service may fail to start. You can manually change the port without reinstalling:

  1. Stop the Agent service

    • Press Win+R, type services.msc, and press Enter.
    • Find Leapwork Agent, right-click, and select Stop.
  2. Edit the configuration

    • Go to C:\Program Files\Leapwork\Agent.
    • Open agent.config as Administrator.
    • Change the value of AgentPort, save, and close.
  3. Restart the Agent service

    • Return to Services, right-click Leapwork Agent, and select Start.
  4. Update your firewall

    • Allow inbound traffic on the new TCP port.
  5. Test connection

    • Use Leapwork Flow to confirm the Agent is reachable.

How can I keep the Agent’s display resolution consistent?

Running tests at a fixed resolution can fail if the Agent’s display settings change. To keep resolution stable, follow these practices:

  1. Use a dedicated service account

    • Avoid connecting multiple users to the same Agent.
    • Remote desktop sessions can change resolution or disrupt tests if closed mid-run.
  2. Align resolution in Leapwork Flow

    • In Environment settings, ensure all users configure the same resolution (Native or a chosen fixed value).
  3. Set resolution manually on the Agent machine

    • From Leapwork Environments, keep Screen Resolution as Native, then click Test connection.

By following these steps and keeping accounts and configurations consistent, the Agent will run tests at a stable resolution.

How do I prevent the Agent machine from logging out or sleeping?

By default, Windows locks or sleeps after a set time. To keep the Agent active, follow these two steps:

  1. Disable Power & Sleep Settings
    Ensure the machine never locks or sleeps automatically: Sleep settings on different OS

    • Windows 10
      • Right-click the Start menu → Power Options.
      • For a local desktop: set all Sleep options to Never.
      • For a Windows 10 VM: set all Power & Sleep options to Never.
    • Windows 8
      • Right-click the Start menu → Power Options.
      • Select Choose when to turn off the display.
      • For a local desktop: set Put the computer to sleep to Never.
      • For a VM: set both Turn off the display and Put the computer to sleep to Never.
      • Click Save changes.
    • Windows 7
      • Start menu → Control Panel → System and Security → Power Options.
      • Next to the selected plan, click Change plan settings.
      • Set Turn off the display and Put the computer to sleep to Never.
      • Confirm with OK → Save changes.
    • Windows Server 2008 & 2012
      • Start menu → Control Panel → System and Security → Power Options.
      • On Choose or Customize a power plan, select Change plan settings.
      • Set Turn off the display and Put the computer to sleep to Never.
      • Click OK → Save changes. If your organisation restricts these changes, host the Agent on a VM and adjust settings there.
  2. Update Agent Configuration
    Modify the Agent config file to keep the display active:

  3. Stop Leapwork Agent from services.msc.

    1. Open C:\Program Files\Leapwork\Agent\agent.config in Notepad (as Administrator).
    2. Add:

  1. Save the file and restart the Agent service.
    1. In Leapwork Flow, refresh Controller settings to apply changes.

With these adjustments, the Agent machine will stay awake and maintain its session for test execution.

Can Leapwork log in/out when the Agent’s screen is locked?

Leapwork supports two ways to log in and out of a locked Agent machine:

  1. Windows Credential Provider
    • Leapwork can log in on behalf of the user and support SSO testing.
    • Add Login, Logout, or Lock blocks to your flows. For example, use a Login block at the start and a Logout block at the end of automation.
  1. Custom Blocks with Images and Text
    • Create a Custom Remote Login Block:
      1. Lock the Agent machine.
      2. Capture a static element of the lock screen (e.g. Press Ctrl+Alt+Delete).
      3. Use a Type Text block to send Ctrl+Alt+Delete.
      4. Use Find Image + Click Position to select the user account.
      5. Type password and press Enter to log in.

Why is the Preview environment empty over RDP on Windows 7/Server 2008 R2?

On Windows 7 SP1 and Windows Server 2008 R2, limitations in desktop duplication technology prevent Leapwork Flow features from working over Remote Desktop Connection. As a result, the preview environment appears blank.

How can we reset the Leapwork Agent password?

When installing the Leapwork Agent, you’re prompted to set a password for configuration security. If you later forget this password, you have three options:

  1. Reinstall the Agent component and set a new password during installation.

  2. Check Windows Registry (HKLM\\SOFTWARE\\LEAPWORK → AgentPassword). If the value is visible (not encrypted), you can retrieve it. If encrypted, this approach won’t work.

  3. Clear the password in agent.config:

    • Stop the LEAPWORK Agent service.
    • Navigate to C:\Program Files\LEAPWORK\Agent and back up agent.config.
    • Remove the encrypted value under the Password field.

If none of these work (for example, if the registry value is encrypted), reinstalling is the only supported way to reset the password. For special cases, contact Priority Support.