intuned-runner v0.0.5-test4
To test locally, you can:
- create index.ts file with the following content:
import type { BrowserContext } from "playwright";
async function run(context: BrowserContext, params: any) {
const page = await context.newPage();
await page.goto("https://www.wikipedia.org/");
await page.getByLabel("Search Wikipedia").click();
await page.getByLabel("Search Wikipedia").type("ahmad");
await page.getByLabel("Search Wikipedia").press("Enter");
await page.goto("https://en.wikipedia.org/wiki/Muslim_world");
await page.goto("https://www.google.com/");
return { done: "true", params };
}
export default run;
- to test cli mode, do
yarn intuned-runner
. to test web server mode, do
yarn intuned-build
.to run the output server
node ./output/bundle.js
and call on port 4000
Notes:
- you can do
yarn intuned-runner --help
oryarn intuned-build --help
to get cli options. - for publishing
yarn build
andnpm publish
(for now, faisal only can publish). - to test vanilla mode, do the same as the above except the index.ts content and the mode you should pass.
async function userscript(params) {
return {
name: "vanilla",
params,
};
}
export default userscript;
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago