---
title: Travis CI Selenium testing with TestingBot | TestingBot Blog
description: |-
  Travis CI is a continuous integration service, you can use this free service to run (Selenium) tests from your GitHub repository.
  It is very easy t...
source_url:
  html: https://testingbot.com/blog/2012/12/31/travis-ci-selenium-testing-with-testingbot
  md: https://testingbot.com/blog/2012/12/31/travis-ci-selenium-testing-with-testingbot.md
---

# Travis CI with WebDriver

By [Jochen D.](https://testingbot.com/about/jochen-d)2012-12-31

 Share on Facebook 

 Share on Twitter 

 Post on Reddit 

 Share link 

Travis CI is a continuous integration service, you can use this free service to run (Selenium) tests from your GitHub repository. It is very easy to use the TestingBot Selenium grid together with Travis CI.

Below is a guide to run your Selenium tests with Travis CI. We offer TestingBot status badges to indicate your Selenium tests status on your GitHub pages.

## Set up Travis CI

Sign up at [Travis CI](https://travis-ci.org/) and connect your GitHub project with Travis CI. You can find information on how to do this at the Travis CI [help section](https://docs.travis-ci.com/user/onboarding/).

## Sample Selenium Test

Add a simple Selenium test to your GitHub project, modify the `.travis.yml` file in your repository to indicate you want to run a Selenium test.

```yaml
language: node_js
node_js:
  - 0.8
env:
- [
    {secure: "akuE0dld1Ke9mahjUUrQhUZRYWasdfewfwefewfZlbvOx\nqaPybirPGsDmImvcktaAkjLxpePd0V1+ak+4dws7dTrFfEsdvsdsdvsdvds2\nud1q5oGOzEqfiRGxY/fJHLWlaQ609Bsdfdsfds2VeY1Z/V7N9iQ="},
    {secure: "JGfkAfr/SOlzV+NpgNi3fxP4F2usdfdsveGAppugHj1IxhoyjY\nOp07x4p1hdIfWVF03RqUrPNXkl72+yh53pv2fUzsdfsd3434GRjGy6J6\notuA/N+xs0+TP2ENlCmDauwO32Okfojvj7CgvsdfdsfRyaFzIGWPdw="}
  ]
script:
- "node tests/examples/*.js"
```

The two secure lines in the above example are your TestingBot key and secret, which are used to run a test on our TestingBot Selenium Grid. To generate these 2 lines, you need to install the Travis CI gem and run these commands with your own key and secret:

```ruby
travis encrypt username/projectname TESTINGBOT_KEY=key
travis encrypt username/projectname TESTINGBOT_SECRET=secret
```

Now you can use the encrypted `TESTINGBOT_KEY` and `TESTINGBOT_SECRET` environment variables in your tests. Remember to indicate your test's privacy setting as `public` (privacy = true) if you want to use the test status badges we provide.

Here's an example in NodeJS:

```javascript
var webdriverjs = require('tbwdjs');
var client = webdriverjs.remote({
    host: 'hub.testingbot.com',
    desiredCapabilities: {
        browserName: 'internet explorer',
        version: 9,
        platform: 'WINDOWS',
        api_key: process.env.TESTINGBOT_KEY,
        api_secret: process.env.TESTINGBOT_SECRET,
        name: (process.env.TRAVIS_JOB_ID ? ("Travis Build " + process.env.TRAVIS_JOB_ID) : "Simple Test"),
        privacy: true
    }
});

client
    .testMode()
    .init()
    .url('http://google.com/')
    .titleEquals('Google')
    .end();
```

## Get your TestingBot badge
Once your first Selenium test has ran via Travis, you can start displaying its status with our [Status Badges](https://testingbot.com/support/other/status-badges): 
## More information

Our help page regarding Travis CI integration has more info: [Travis CI + TestingBot](https://testingbot.com/support/integrations/ci-cd/travis-ci)

[← Previous post PhantomJS on TestingBot](https://testingbot.com/blog/2012/11/30/phantomjs-headless-testing-with-selenium-webdriver-and-testingbot) [Next post → Appium testing on TestingBot: automated hybrid/native iOS testing.](https://testingbot.com/blog/2013/02/25/appium-testing-on-testingbot-automated-hybridnative-ios-testing)

## Sidebar

### TestingBot Cloud Testing

Run automated, manual and visual tests on remote browsers and devices. Sign up for a free trial.

[Free Trial](https://testingbot.com/users/sign_up)

### Latest articles

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights)

#### Announcing AI Test Insights

Use AI Insights to quickly discover why an automated test...

[Read: Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright)

#### Selenium vs Playwright 2026

Comparing Selenium vs Playwright - which is the best test...

[Read: Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing)

#### Maestro Physical Device Testing

Maestro testing in parallel on physical Android and iOS d...

[Read: Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

## Related Articles

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright "Selenium vs Playwright 2026")

### [Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

Comparing Selenium vs Playwright - which is the best test framework for your usecase?

[Read article →](https://testingbot.com/blog/selenium-vs-playwright)

[![Selenium 20th birthday](https://testingbot.com/assets/blog/2024/selenium20.webp)](https://testingbot.com/blog/selenium-20-years "Selenium 20th birthday")

### [Selenium 20th birthday](https://testingbot.com/blog/selenium-20-years)

Celebrate Selenium's 20th birthday. An overview of the years.

[Read article →](https://testingbot.com/blog/selenium-20-years)

[![Electron Automated Testing](https://testingbot.com/assets/blog/2024/electron.webp)](https://testingbot.com/blog/electron-automated-testing "Electron Automated Testing")

### [Electron Automated Testing](https://testingbot.com/blog/electron-automated-testing)

TestingBot now supports running automated tests against Electron-based apps on remote Windows and macOS machines in the cloud.

[Read article →](https://testingbot.com/blog/electron-automated-testing)

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing "Maestro Physical Device Testing")

### [Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

Maestro testing in parallel on physical Android and iOS devices.

[Read article →](https://testingbot.com/blog/maestro-physical-device-testing)

## More by Jochen D.

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights "Announcing AI Test Insights")
### [Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

Use AI Insights to quickly discover why an automated test failed.

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing "Maestro Physical Device Testing")
### [Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

Maestro testing in parallel on physical Android and iOS devices.

[![tvOS Physical Device Testing](https://testingbot.com/assets/blog/2025/appletv.jpg)](https://testingbot.com/blog/tvos-automated-testing "tvOS Physical Device Testing")
### [tvOS Physical Device Testing](https://testingbot.com/blog/tvos-automated-testing)

Run automated tvOS tests on physical AppleTV devices.

[See all posts by Jochen D. →](https://testingbot.com/about/jochen-d)

## Ready to start testing?
[Start a free trial](https://testingbot.com/users/sign_up)
