nemojs-skill
Generates Nemo.js automation tests in JavaScript. PayPal's Selenium-based test framework for Node.js. Use when user mentions "Nemo.js", "nemo automation". Triggers on: "Nemo.js", "nemo automation", "nemo test", "PayPal test framework".
DeepseekModel
官方收录技能
质量 优秀 · 78
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=lambdatest-agent-skills-nemojs-skill-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name nemojs-skill description Generates Nemo.js automation tests in JavaScript. PayPal's Selenium-based test framework for Node.js. Use when user mentions "Nemo.js", "nemo automation". Triggers on: "Nemo.js", "nemo automation", "nemo test", "PayPal test framework". languages ["JavaScript"] category e2e-testing license MIT metadata {"author":"TestMu AI","version":"1.0"} Nemo.js Automation Skill PayPal's Selenium-based test automation framework for Node.js. For TestMu AI cloud execution, see reference/cloud-integration.md and shared/testmu-cloud-reference.md . Core Patterns Basic Test (Mocha) const Nemo = require ( 'nemo' ); const { expect } = require ( 'chai' ); describe ( 'Login Flow' , function ( ) { this . timeout ( 30000 ); let nemo; before ( async () => { nemo = await Nemo (); }); after ( async () => { await nemo. driver . quit (); }); it ( 'should login with valid credentials' , async () => { await nemo. driver . get (nemo. data . baseUrl + '/login' ); const email = await nemo. view . _find ( '#email' ); await email. sendKeys ( 'user@test.com' ); const password = await nemo. view . _find ( '#password' ); await password. sendKeys ( 'password123' ); await nemo. view . _find ( 'button[type="submit"]' ). click (); await nemo. view . _waitVisible ( '.dashboard' , 10000 ); const url = await nemo. driver . getCurrentUrl (); expect (url). to . include ( '/dashboard' ); }); it ( 'should show error for invalid credentials' , async () => { await nemo. driver . get (nemo. data . baseUrl + '/login' ); await nemo. view . _find ( '#email' ). sendKeys ( 'wrong@test.com' ); await nemo. view . _find ( '#password' ). sendKeys ( 'wrong' ); await nemo. view . _find ( 'button[type="submit"]' ). click (); await nemo. view . _waitVisible ( '.error' , 5000 ); const error = await nemo. view . _find ( '.error' ); const text = await error. getText (); expect (text). to . include ( 'Invalid' ); }); }); View Locators await nemo. view . _find ( '#css-id' ); // CSS await nemo. view . _find ( '.class-name' ); // CSS class await nemo. view . _find ( '[data-testid="login"]' ); // Data attribute await nemo. view . _find ( 'xpath://button[@type]' ); // XPath prefix await nemo. view . _waitVisible (locator, timeout); // Wait + find await nemo. view . _finds ( '.items' ); // Find multiple Configuration (nemo.config.json) { "driver" : { "browser" : "chrome" , "server" : "http://localhost:4444/wd/hub" } , "data" : { "baseUrl" : "http://localhost:3000" } , "view" : [ "locator" ] , "plugins" : { "view" : { "module" : "nemo-view" } } } Cloud Execution on TestMu AI Set environment variables: LT_USERNAME , LT_ACCESS_KEY { "driver" : { "browser" : "chrome" , "server" : "https://hub.lambdatest.com/wd/hub" , "serverCaps" : { "username" : "${LT_USERNAME}" , "accessKey" : "${LT_ACCESS_KEY}" } , "capabilities" : { "LT:Options" : { "user" : "${LT_USERNAME}" , "accessKey" : "${LT_ACCESS_KEY}" , "build" : "Nemo Build" , "name" : "Nemo Test" , "platformName" : "Windows 11" , "video" : true , "console" : true , "network" : true } } } } Setup: npm install nemo nemo-view --save-dev Run: npx mocha test/*.js --timeout 30000 Deep Patterns For advanced patterns, debugging guides, CI/CD integration, and best practices, see reference/playbook.md .
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |