Open-source release of MAESTRO, an agent orchestration platform that runs LLM-driven tasks through sandboxed tools, with a web UI. Apache-2.0. See README.md and docs/ (getting-started, configuration, architecture).
26 lines
690 B
JavaScript
26 lines
690 B
JavaScript
---
|
|
description: Log in and grab the dashboard table
|
|
params:
|
|
- name: user
|
|
type: string
|
|
- name: pass
|
|
type: string
|
|
session_profile_id: 7
|
|
recording_source: rec-test.json
|
|
---
|
|
|
|
async function main({ context, params }) {
|
|
const page = await context.newPage();
|
|
try {
|
|
await page.goto('https://example.com/login');
|
|
await page.locator('[data-testid="username"]').fill(params.user);
|
|
await page.locator('[data-testid="password"]').fill(params.pass);
|
|
await page.locator('button[type="submit"]').click();
|
|
const __text = await page.locator('[data-testid="dashboard"]').textContent();
|
|
return __text;
|
|
} finally {
|
|
await page.close();
|
|
}
|
|
}
|
|
module.exports = main;
|