LambdaTestAutomation Testing ● Run Selenium Tests With NemoJS

Run Selenium Tests With NemoJS

NemoJS is an open-source NodeJS automation framework developed by PayPal. Nemo makes it easy to integrate Selenium automation into your NodeJS web projects.

This document will help you run Selenium automated tests with NemoJS on LambdaTest cloud Selenium Grid. You can run NemoJS automated test cases across 2000+ different browsers and operating systems.


All the code samples in this documentation can be found in the NemoJS LambdaTest Repository on GitHub. You can either download or clone the repository to quickly run your tests.

Before starting running your Selenium tests with NemoJS, ensure you have the following things configured.

  1. Make sure you have NodeJS installed. You can install it from the official NodeJS website. You can also install NodeJS by running the following command in the terminal.
  2. Run the below command to download npm.
  3. To download NemoJS, run the following command in the terminal.
  4. To run your Selenium tests with NemoJS, you would need to set your LambdaTest username and access key in the environment variables. To get it, visit Automation Dashboard and click on the Key button from the top-right.
    • For Windows:

    • For Mac/Linux:

  5. Install the dependencies by executing the following command.
  6. Set the environment variables in nemo.config.js file with your LambdaTest Username and Access Key.

Running The Single Test Case With NemoJS

To run your single test case with NemoJS on LambdaTest, let’s understand our test case scenario, the below Nemo.js automation script will test a sample to-do list app. The code marks two list items as done, adds a list item, and then outputs the total number of pending items.

To run the single test, execute the below command in the terminal.

Running The Parallel Tests With NemoJS

LambdaTest Selenium Grid allows you to perform parallel testing across 2000+ browsers and OS to automate your several test cases simultaneously. You can execute a single test case across various browsers, or you can run multiple test case scenarios across the same browser but with different browser versions.

Below is the code sample for the Parallel tests. In this code, we will test our Sample to-do app in three browser versions and operating systems.

Now run the below command to run the parallel tests.

That’s all! You have successfully performed your Selenium tests with Nemo.js. In case you come across any doubts, feel free to reach out through our 24/7 chat support or you can also drop a mail to [email protected]. Happy testing!