Skip to main content
skill CX Codex

nemojs-skill — Claude Code skill: tests and setup

The nemojs-skill skill generates JavaScript automation tests for Nemo.js and Selenium. Use it for browser flows such as login checks, element waits, and assertions.

MIT 209 installs ★ 393 updated 2026-10-13

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a claude-code
Open on GitHub

What nemojs-skill does

nemojs-skill guides an agent through JavaScript tests for Nemo.js, PayPal’s Selenium-based Node.js framework. It covers Mocha test structure, Nemo startup and shutdown, browser navigation, CSS or XPath locators, visibility waits, and assertions with chai.

The examples use nemo.config.json to define the browser, Selenium endpoint, base URL, view plugin, and locator support. A local setup points to http://localhost:4444/wd/hub; tests run with npx mocha test/*.js --timeout 30000. The required packages are installed with npm install nemo nemo-view --save-dev.

For TestMu AI execution, the configuration uses LambdaTest’s remote Selenium endpoint and reads LT_USERNAME and LT_ACCESS_KEY from the environment. Cloud runs cannot authenticate when those variables are missing.

What it helps with

  • generate a Nemo.js login test
  • check that an element becomes visible
  • locate controls with CSS, data attributes, or XPath
  • run a Mocha test set
  • configure local or remote Selenium execution

Example prompts for the agent

  • Create a Nemo.js test for a login form that confirms the URL contains /dashboard.
  • Write a Nemo test that submits invalid credentials and checks the error text.
  • Set up nemo.config.json for Chrome through Selenium at http://localhost:4444/wd/hub.

How to install nemojs-skill

1Skills CLI (Vercel)

npx skills add LambdaTest/agent-skills --skill nemojs-skill -a claude-code

2Manually: put the files in place

~/.claude/skills/nemojs-skill/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nemojs-skill/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about nemojs-skill

How do I install nemojs-skill in Claude Code?

Run npx skills add LambdaTest/agent-skills --skill nemojs-skill -a claude-code, then open ~/.claude/skills/nemojs-skill/SKILL.md.

What does nemojs-skill do?

It helps generate JavaScript automation tests for Nemo.js with Mocha, Selenium, and chai. The skill covers browser actions, locators, waits, and result assertions.

What is required to run Nemo.js tests?

Install nemo and nemo-view, provide nemo.config.json, and make a Selenium server available. TestMu AI runs also require LT_USERNAME and LT_ACCESS_KEY.

Source text

SKILL.md · MIT
---
name: nemojs-skill
description: >
  Generates Nemo.js automation tests in JavaScript. PayPal's Selenium-based
  test framework for Node.js. Use when user mentions "Nemo.js", "nemo
  automation". Triggers on: "Nemo.js", "nemo automation", "nemo test",
  "PayPal test framework".
languages:
  - JavaScript
category: e2e-testing
license: MIT
metadata:
  author: TestMu AI
  version: "1.0"
---

# Nemo.js Automation Skill

> PayPal's Selenium-based test automation framework for Node.js.

For TestMu AI cloud execution, see [reference/cloud-integration.md](reference/cloud-integration.md) and [shared/testmu-cloud-reference.md](../shared/testmu-cloud-reference.md).

## Core Patterns

### Basic Test (Mocha)

```javascript
const Nemo = require('nemo');
const { expect } = require('chai');

describe('Login Flow', function() {
  this.timeout(30000);
  let nemo;

  before(async () => {
    nemo = await Nemo();
  });

  after(async () => {
    await nemo.driver.quit();
  });

  it('should login with valid credentials', async () => {
    await nemo.driver.get(nemo.data.baseUrl + '/login');
    const email = await nemo.view._find('#email');
    await email.sendKeys('[email protected]');
    const password = await nemo.view._find('#password');
    await password.sendKeys('password123');
    await nemo.view._find('button[type="submit"]').click();

    await nemo.view._waitVisible('.dashboard', 10000);
    const url = await nemo.driver.getCurrentUrl();
    expect(url).to.include('/dashboard');
  });

  it('should show error for invalid credentials', async () => {
    await nemo.driver.get(nemo.data.baseUrl + '/login');
    await nemo.view._find('#email').sendKeys('[email protected]');
    await nemo.view._find('#password').sendKeys('wrong');
    await nemo.view._find('button[type="submit"]').click();

    await nemo.view._waitVisible('.error', 5000);
    const error = await nemo.view._find('.error');
    const text = await error.getText();
    expect(text).to.include('Invalid');
  });
});
```

### View Locators

```javascript
await nemo.view._find('#css-id');                    // CSS
await nemo.view._find('.class-name');                // CSS class
await nemo.view._find('[data-testid="login"]');     // Data attribute
await nemo.view._find('xpath://button[@type]');     // XPath prefix
await nemo.view._waitVisible(locator, timeout);     // Wait + find
await nemo.view._finds('.items');                    // Find multiple
```

### Configuration (nemo.config.json)

```json
{
  "driver": {
    "browser": "chrome",
    "server": "http://localhost:4444/wd/hub"
  },
  "data": {
    "baseUrl": "http://localhost:3000"
  },
  "view": ["locator"],
  "plugins": {
    "view": { "module": "nemo-view" }
  }
}
```

### Cloud Execution on TestMu AI

Set environment variables: `LT_USERNAME`, `LT_ACCESS_KEY`

```json
{
  "driver": {
    "browser": "chrome",
    "server": "https://hub.lambdatest.com/wd/hub",
    "serverCaps": {
      "username": "${LT_USERNAME}",
      "accessKey": "${LT_ACCESS_KEY}"
    },
    "capabilities": {
      "LT:Options": {
        "user": "${LT_USERNAME}",
        "accessKey": "${LT_ACCESS_KEY}",
        "build": "Nemo Build",
        "name": "Nemo Test",
        "platformName": "Windows 11",
        "video": true,
        "console": true,
        "network": true
      }
    }
  }
}
```

## Setup: `npm install nemo nemo-view --save-dev`
## Run: `npx mocha test/*.js --timeout 30000`

## Deep Patterns

For advanced patterns, debugging guides, CI/CD integration, and best practices,
see `reference/playbook.md`.

© TestMu AI · MIT · LambdaTest/agent-skills

Similar skills

All skills for Testing and QA →

From the same set47

The whole set →
geb-skill This skill generates browser automation tests in Groovy using Geb and Spock. It provides page object patterns and jQuery-like selectors for e2e testing. CX Codex +1 211installs capybara-skill Generates acceptance tests for web apps using Capybara and RSpec. Use it to automate clicks, form fills, and page assertions in Ruby-based E2E suites. CX Codex +1 210installs nunit-skill Generates C# unit tests for NUnit 3 using the Assert.That constraint model, parameterized inputs, and Moq mocks. CX Codex +1 210installs mstest-skill This skill generates MSTest unit tests in C# for .NET. Use it when a task calls for [TestMethod], assertion checks, or data-driven cases. CX Codex +1 209installs lettuce-skill Generates Python BDD tests using the legacy Lettuce framework. Builds Gherkin feature files, step definitions, and terrain hooks for existing test suites. CX Codex +1 208installs nightwatchjs-skill Writes NightwatchJS E2E tests in JavaScript or TypeScript, with page objects and built-in assertions. Fits repos that already run Nightwatch. CX Codex +1 208installs protractor-skill protractor-skill is a Claude Code skill that writes Protractor E2E tests for Angular and AngularJS apps in JavaScript or TypeScript. It activates on requests about Protractor, element(by.model()), or Angular E2E testing. CX Codex +1 206installs reqnroll-skill Generates production-grade Reqnroll BDD tests in C# for Selenium and Appium 2. Helps configure parallel NUnit suites and cloud runs on LambdaTest. CX Codex +1 138installs

Project sponsors

Companies that keep this analytics open