
rf-seleniumlib-to-browser-lib
by Matthew King
Migrate Robot Framework tests from SeleniumLibrary to Playwright-based Browser library with architectural integrity.
- Convert Selenium-based Robot tests to Playwright-based Browser library.
- Generate parallel '_browser.robot' files for incremental migration.
- Detect and resolve keyword conflicts in shared resource files.
Free
Included in download
- Downloadable skill package
- Works with Claude Code, Cursor
- 2 permissions declared
Sample input
Migrate the login test in tests/gui/login_tests.robot to use the Browser library. Use semantic locators and maintain the existing aggregator pattern.
Sample output
Created: tests/gui/login_browser.robot Updated: tests/gui/login_tests.robot
- Resource imports switched to Browser aggregator.
- Test Setup updated to 'Login Browser Test Setup'.
- XPath //button[@id='submit'] converted to semantic 'role=button[name="Log In"]'.
Migrate Robot Framework tests from SeleniumLibrary to Playwright-based Browser library with architectural integrity.
Free
Included in download
- Downloadable skill package
- Works with Claude Code, Cursor
- 2 permissions declared
- Instant install
Sample input
Migrate the login test in tests/gui/login_tests.robot to use the Browser library. Use semantic locators and maintain the existing aggregator pattern.
Sample output
Created: tests/gui/login_browser.robot Updated: tests/gui/login_tests.robot
- Resource imports switched to Browser aggregator.
- Test Setup updated to 'Login Browser Test Setup'.
- XPath //button[@id='submit'] converted to semantic 'role=button[name="Log In"]'.
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.
Use Cases
- Convert Selenium-based Robot tests to Playwright-based Browser library.
- Generate parallel '_browser.robot' files for incremental migration.
- Detect and resolve keyword conflicts in shared resource files.
- Refactor brittle XPaths into stable Playwright semantic locators.
- Update test setups to support high-speed parallel execution.
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 Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/rf-seleniumlib-to-browser-lib -o /tmp/rf-seleniumlib-to-browser-lib.zip && unzip -o /tmp/rf-seleniumlib-to-browser-lib.zip -d ~/.claude/skills && rm /tmp/rf-seleniumlib-to-browser-lib.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
File Scopes
Compatible with SKILL.md-compatible agents (e.g., Claude Code, Cursor, Windsurf).
Creator
Building quality-driven AI solutions that streamline complex processes, improve decision-making, and deliver outcomes you can trust.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
cinematic-sites
Turn any basic business URL into a high-end cinematic landing page with AI-generated 4K assets and GSAP animations.
endless-loop
Autonomous research and task loop that builds on previous findings to solve complex objectives while you sleep.
skill-router-2
Automatically detect, load, and stack the perfect skills combo for any user request.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.