---
title: Run Selenium tests with NodeJS and Intern on TestingBot
description: Cross browser testing with NodeJS and Intern. Run NodeJS Automated tests
  for websites and mobile apps.
source_url:
  html: https://testingbot.com/support/web-automate/selenium/javascript/intern
  md: https://testingbot.com/support/web-automate/selenium/javascript/intern/index.md
---
# NodeJS with Intern

Intern has not seen significant releases since 2019. For new JavaScript end-to-end testing projects we recommend [WebdriverIO](https://testingbot.com/support/web-automate/selenium/nodejs/webdriverio) or [Nightwatch](https://testingbot.com/support/web-automate/selenium/nodejs/nightwatch).

With Intern you can run Javascript unit tests on TestingBot's browser grid.   
 Run your javascript test on all our [browsers](https://testingbot.com/support/web-automate/browsers) in the cloud.

## Installing the example

Make sure you have installed `git` and `NodeJS`.   
 Then proceed to clone our [intern\_example](https://github.com/testingbot/intern_example) with the follow commands:

    git clone https://github.com/testingbot/intern_example.git
    cd intern_example

Once that's installed, please run the follow command to set up the example:

    npm install intern --save-dev

## Run Intern test on TestingBot

In the `tests/intern.json` config you'll find `tunnel` and `environments` entries where you can indicate on which browsers you want your test to run on via TestingBot.

To actually run the test on TestingBot, we first need to point the WebDriver tunnel at the TestingBot Selenium hub and pass the TestingBot `key` and `secret`. In `tests/intern.json`:

    {
      "tunnel": "testingbot",
      "tunnelOptions": {
        "username": "YOUR_KEY",
        "accessKey": "YOUR_SECRET"
      },
      "environments": [
        { "browserName": "chrome", "browserVersion": "latest", "platformName": "WIN11" }
      ]
    }

Now you're ready to run the test on TestingBot. In Intern 4+, the runner is invoked as `intern` (the old `intern-runner` binary was removed). To start the test, run:

    ./node_modules/.bin/intern config=@testingbot

This will download and start our [TestingBot Tunnel](https://testingbot.com/support/tunnel), run your test and report back the result to TestingBot.

### Looking for more help?

Have questions or need more information? Reach out via email or Slack.

[Email us](https://testingbot.com/contact/new)[Slack Join our Slack](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
