Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 53 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SmartUI SDK Sample for Selenium JavaScript
# SmartUI SDK Sample for Selenium JavaScript — TestMu AI (Formerly LambdaTest)

Welcome to the SmartUI SDK sample for Selenium JavaScript. This repository demonstrates how to integrate SmartUI visual regression testing with Selenium JavaScript.

Expand All @@ -19,7 +19,7 @@ smartui-node-sample/
### Prerequisites

- Node.js installed
- LambdaTest account credentials (for Cloud tests)
- TestMu AI account credentials (for Cloud tests)
- Chrome browser (for Local tests)

### Environment Setup
Expand Down Expand Up @@ -102,9 +102,9 @@ npx smartui exec node sdkLocal.js
npx smartui exec node sdkCloud.js
```

## Testing with LambdaTest Hooks
## Testing with TestMu AI Hooks

This repository also includes examples for using SmartUI with LambdaTest Hooks integration. Hooks-based integration allows you to use SmartUI directly within your existing LambdaTest Cloud automation tests without requiring the SmartUI CLI.
This repository also includes examples for using SmartUI with TestMu AI Hooks integration. Hooks-based integration allows you to use SmartUI directly within your existing TestMu AI Cloud automation tests without requiring the SmartUI CLI.

### SDK vs Hooks: Which Approach to Use?

Expand All @@ -116,19 +116,19 @@ This repository also includes examples for using SmartUI with LambdaTest Hooks i
- ✅ Requires `PROJECT_TOKEN` environment variable

**Hooks Approach (Recommended for Cloud-Only Testing):**
- ✅ Works only with LambdaTest Cloud Grid
- ✅ No CLI required - direct integration with LambdaTest
- ✅ Uses LambdaTest capabilities for configuration
- ✅ Better for existing LambdaTest automation suites
- ✅ Works only with TestMu AI Cloud Grid
- ✅ No CLI required - direct integration with TestMu AI
- ✅ Uses TestMu AI capabilities for configuration
- ✅ Better for existing TestMu AI automation suites
- ✅ Requires `LT_USERNAME` and `LT_ACCESS_KEY` environment variables

### Hooks Integration Setup

**Location:** See the `hooks` folder, where you can see all the `examples` scripts to setup your suite or run the demo.

**Purpose:** Enhance visual regression capabilities in your LambdaTest web automation tests running on LambdaTest Cloud Grid.
**Purpose:** Enhance visual regression capabilities in your TestMu AI web automation tests running on TestMu AI Cloud Grid.

**Documentation:** [LambdaTest Selenium Visual Regression Documentation](https://www.lambdatest.com/support/docs/selenium-visual-regression-testing/).
**Documentation:** [TestMu AI Selenium Visual Regression Documentation](https://www.testmuai.com/support/docs/selenium-visual-regression-testing/).

### Hooks Setup Steps

Expand All @@ -143,7 +143,7 @@ npm i selenium-webdriver

#### 2. Configure Environment Variables

Set your LambdaTest credentials:
Set your TestMu AI credentials:

```bash
export LT_USERNAME='your_username'
Expand Down Expand Up @@ -187,9 +187,9 @@ let capabilities = {
};
```

#### 4. Connect to LambdaTest Grid
#### 4. Connect to TestMu AI Grid

Create a WebDriver instance connected to LambdaTest Cloud:
Create a WebDriver instance connected to TestMu AI Cloud:

```javascript
const GRID_HOST = "@hub.lambdatest.com/wd/hub";
Expand Down Expand Up @@ -299,7 +299,7 @@ The `smartUI.options` in capabilities supports various configuration options:

### View Hooks Results

After running your hooks-based tests, visit the [LambdaTest Automation Dashboard](https://automation.lambdatest.com/) to view:
After running your hooks-based tests, visit the [TestMu AI Automation Dashboard](https://automation.lambdatest.com/) to view:
- Test execution status
- Screenshots captured
- Visual comparison results
Expand All @@ -311,7 +311,7 @@ Navigate to your SmartUI project in the [SmartUI Dashboard](https://smartui.lamb

### Cloud Test (`sdk/sdkCloud.js`)

- Connects to LambdaTest Cloud using Selenium Remote WebDriver
- Connects to TestMu AI Cloud using Selenium Remote WebDriver
- Reads credentials from environment variables (`LT_USERNAME`, `LT_ACCESS_KEY`)
- Takes screenshot with name: `screenshot`

Expand Down Expand Up @@ -505,7 +505,7 @@ echo $PROJECT_TOKEN
echo $LT_USERNAME
echo $LT_ACCESS_KEY
```
2. Check your credentials in [LambdaTest Profile Settings](https://accounts.lambdatest.com/profile)
2. Check your credentials in [TestMu AI Profile Settings](https://accounts.lambdatest.com/profile)
3. Ensure there are no extra spaces or quotes in the environment variables

### Issue: `Cannot find module '@lambdatest/selenium-driver'`
Expand Down Expand Up @@ -614,16 +614,45 @@ After running the tests, visit your SmartUI project dashboard to view the captur

## Additional Resources

- [SmartUI Selenium JavaScript Onboarding Guide](https://www.lambdatest.com/support/docs/smartui-onboarding-selenium-js/)
- [LambdaTest Selenium Documentation](https://www.lambdatest.com/support/docs/selenium-automation/)
- [SmartUI Selenium JavaScript Onboarding Guide](https://www.testmuai.com/support/docs/smartui-onboarding-selenium-js/)
- [TestMu AI Selenium Documentation](https://www.testmuai.com/support/docs/selenium-automation/)
- [SmartUI Dashboard](https://smartui.lambdatest.com/)
- [LambdaTest Automation Dashboard](https://automation.lambdatest.com/)
- [LambdaTest Community](https://community.lambdatest.com/)
- [LambdaTest Blog](https://www.lambdatest.com/blog/)
- [TestMu AI Automation Dashboard](https://automation.lambdatest.com/)
- [TestMu AI Community](https://community.testmuai.com/)
- [TestMu AI Blog](https://www.testmuai.com/blog/)

## Support

For additional help:
- [LambdaTest Support](https://www.lambdatest.com/support/)
- [Documentation](https://www.lambdatest.com/support/docs/)
- [24/7 Chat Support](https://www.lambdatest.com/)
- [TestMu AI Support](https://www.testmuai.com/support/)
- [Documentation](https://www.testmuai.com/support/docs/)
- [24/7 Chat Support](https://www.testmuai.com/)

## 🚀 LambdaTest is Now TestMu AI

👋 Welcome to TestMu AI, the next evolution of LambdaTest. As of January 2026, [LambdaTest is Now TestMu AI](https://www.testmuai.com/lambdatest-is-now-testmuai/) - we have evolved from a cross-browser testing cloud into a unified, AI-native quality engineering platform designed for the modern DevOps era.

Whether you have been part of the LambdaTest community for years or are just discovering TestMu AI, our mission remains the same: to help you ship faster with high-scale test execution, autonomous testing, and deep quality analytics.

### 🔄 Our Rebrand Journey

In 2017, we introduced LambdaTest with a clear mission: to become the world's most trusted cloud testing platform. We built a scalable, high-performance test cloud that eliminated flakiness, improved developer feedback cycles, and accelerated release velocity for teams worldwide.

As LambdaTest grew, we expanded the platform into Test Intelligence, Visual Regression Testing, Accessibility Testing, API Testing, and Performance Testing, covering the entire testing lifecycle. These capabilities enabled teams to test any stack, on any technology, at enterprise scale.

Over time, we rebuilt the architecture to be AI-native from the ground up. What began as LambdaTest's high-performance testing cloud has now evolved into TestMu AI, an AI-native, multi-agent platform redefining modern quality engineering.

We chose the name TestMu AI to reflect our shift towards intelligent, autonomous testing. While our identity has changed, our core technology and commitment to the testing community stay the same.

👉 Find [LambdaTest's New Home](https://www.testmuai.com/).

### 🔭 Explore TestMu AI

The same infrastructure LambdaTest customers relied on, now delivered through autonomous AI agents.

- [KaneAI](https://www.testmuai.com/kane-ai/)
- [Agent-to-Agent Testing](https://www.testmuai.com/agent-to-agent-testing/)
- [HyperExecute](https://www.testmuai.com/hyperexecute/)
- [Real Device Cloud](https://www.testmuai.com/real-device-cloud/)
- [Pricing](https://www.testmuai.com/pricing/)
- [Documentation](https://www.testmuai.com/support/docs/)
Loading