# rf-seleniumlib-to-browser-lib

> SeleniumLibrary is the flakiest part of your Robot Framework suite. This skill swaps it for Browser library, structure intact

rf-seleniumlib-to-browser-lib is a free AI agent skill on Agensi by Matthew King, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Matthew King](https://www.agensi.io/creators/subverted)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Rating: 5.0 out of 5 from 1 review
- Uses: 10
- Version: 1.0
- Last updated: 2026-05-31
- Security: scan passed (2026-05-31); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/rf-seleniumlib-to-browser-lib
- Tags: robot-framework, playwright, selenium, testing

## About this skill

### What it does

This skill automates the migration of Robot Framework test suites from the legacy **SeleniumLibrary** to the modern, Playwright-based **Browser library**. It handles the heavy lifting of identifying keyword equivalents, restructuring file hierarchies, and updating test configurations while maintaining repository consistency.

### Why use this skill

Unlike simple search-and-replace tools, this skill understands the architectural shift between Selenium and Playwright. It focuses on **behavior preservation** rather than mechanical keyword mapping. It intelligently detects existing repository patterns, handles transitive dependency conflicts (preventing "Multiple keywords with name" errors), and generates parallel test files so you can migrate incrementally without breaking your current CI/CD pipeline.

### Key Features

- **Repo-First Adaptation:** Naturally adopts your project's specific naming conventions and setup patterns.

- **Dependency Analysis:** Automatically traces import chains to prevent Selenium/Browser library conflicts.

- **Smart Locators:** Converts brittle XPaths into stable, Playwright-native semantic locators (role, text, label).

- **Parallel-Ready:** Refactors setups to use isolated browser contexts, enabling faster parallel execution.

- **Risk Assessment:** Flags high-risk areas like SSO, multi-tab handling, and file uploads for manual review.

### Supported Tools

Optimized for Robot Framework environments using **SeleniumLibrary** and **robotframework-browser**. It utilizes file system tools (glob, grep, read/write) to analyze and refactor your codebase efficiently.

## Requires

- Python

## Known limitations

- Cannot handle custom Python-based Selenium keywords.
- Requires manual review for complex multi-window or SSO flows.
- Semantic locator conversion may fail on highly dynamic shadow DOMs.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the rf-seleniumlib-to-browser-lib skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from a simple search-and-replace script?

This skill automates the transition from SeleniumLibrary to the Playwright-based Browser library by refactoring keywords, updating locators to semantic standards, and restructuring test configurations to support isolated browser contexts.

### Will using this migration skill break my current CI/CD pipeline?

The skill generates parallel test files rather than overwriting your original test suites, allowing you to validate Playwright scripts in your CI/CD pipeline while maintaining your existing Selenium baseline.

### Are there specific repository structures required for this skill to work?

It is designed for any Robot Framework project using SeleniumLibrary; the skill performs a repository-wide analysis to handle cross-file dependencies and prevent keyword naming conflicts during the migration.

### Does it automate 100% of the migration, or is manual intervention required?

While it handles the majority of keyword and locator conversions, the skill will flag complex scenarios like SSO flows, multi-tab handling, and specific file upload sequences for manual review to ensure architectural integrity.

### What exactly is included in the purchase of this skill?

You receive the migration AI skill, a set of configuration templates for the Browser library, and a risk assessment report that highlights specific areas of your codebase requiring manual attention.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
