An open API service indexing awesome lists of open source software.

https://github.com/visactor/midscene-test-demo

Midscene test demo for VisActor
https://github.com/visactor/midscene-test-demo

Last synced: 7 months ago
JSON representation

Midscene test demo for VisActor

Awesome Lists containing this project

README

          

# VisActor Midscene.js Test Demo

Use [Midscene.js](https://github.com/web-infra-dev/midscene) to test [VChart](https://github.com/VisActor/VChart) and [VTable](https://github.com/VisActor/VTable).

## Steps

create `.env` file

```shell
# replace by your own, example(qwen):
OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
OPENAI_API_KEY="YOUR_TOKEN"
MIDSCENE_MODEL_NAME="qwen-vl-max-latest"
MIDSCENE_USE_QWEN_VL=1
```

run demo

```bash
pnpm install

# run vchart demo
pnpm run start-test-vchart

# run vtable demo
pnpm run start-test-vtable
```

# Reference

- [Midscene.js Integrate with Puppeteer](https://midscenejs.com/integrate-with-puppeteer.html)
- [Midscene.js API](https://midscenejs.com/api.html)
- [VChart](https://www.visactor.com/vchart)
- [VTable](https://www.visactor.com/vtable)