agent faq.md

Agent FAQ

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

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

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

  3. 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.

After installation, register the agent in the Environment section so the Controller can manage it.

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

http://localhost:4444/grid/console

  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:

mv chromedriver /usr/local/bin
mv geckodriver /usr/local/bin

  1. Safari Setup

safaridriver --enable

  1. Set Up Selenium Grid

chmod u+x ~/Desktop/Selenium\ Grid/gridSetup.command

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:

  1. 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
  1. Edit the configuration
  1. Restart the Agent service
  1. Update your firewall
  1. Test connection

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
  1. Align resolution in Leapwork Flow
  1. Set resolution manually on the Agent machine

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

If your organisation restricts these changes, host the Agent on a VM and adjust settings there.

  1. Update Agent Configuration

Modify the Agent config file to keep the display active:

  1. Stop Leapwork Agent from services.msc.

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

  3. Add:

"KeepDisplayActive": true,

  1. Save the file and restart the Agent service.

  2. 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
  1. Custom Blocks with Images and Text
  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:

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.