Skip to content

Conversation

@quanru
Copy link
Collaborator

@quanru quanru commented Dec 31, 2025

No description provided.

@netlify
Copy link

netlify bot commented Dec 31, 2025

Deploy Preview for midscene ready!

Name Link
🔨 Latest commit 2764a2c
🔍 Latest deploy log https://app.netlify.com/projects/midscene/deploys/695f6df80e0f5e00087c05e2
😎 Deploy Preview https://deploy-preview-1709--midscene.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@quanru quanru changed the title feat(web-integration): implement file upload functionality with tests… feat(web-integration): implement file upload functionality with tests and HTML fixture Dec 31, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements file upload functionality for web automation testing, adding a new aiUploadFile action method that allows uploading single or multiple files to web pages through Puppeteer and Playwright interfaces.

  • Adds aiUploadFile method to the Agent API for uploading files via natural language element location
  • Implements uploadFile functionality in base page classes for Puppeteer and Playwright with file path validation
  • Includes comprehensive test coverage for single file, multiple files, and error scenarios

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/core/src/agent/agent.ts Adds aiUploadFile method to Agent class for file upload functionality
packages/core/src/device/index.ts Defines UploadFile action schema and type definitions
packages/web-integration/src/web-page.ts Registers UploadFile action in the common web actions
packages/web-integration/src/puppeteer/base-page.ts Implements uploadFile method with file validation for both Puppeteer and Playwright
packages/web-integration/src/playwright/ai-fixture.ts Adds aiUploadFile fixture for Playwright test integration
packages/web-integration/src/chrome-extension/page.ts Adds uploadFile stub that throws descriptive error for unsupported Chrome Extension mode
packages/web-integration/tests/ai/web/puppeteer/file-upload.test.ts Adds Puppeteer test suite for file upload scenarios
packages/web-integration/tests/ai/web/playwright/file-upload.spec.ts Adds Playwright test suite for file upload scenarios
packages/web-integration/tests/ai/fixtures/file-upload.html Provides HTML fixture for testing file upload interactions
packages/web-integration/tests/ai/fixtures/test-file*.txt Adds test file fixtures for upload testing
apps/site/docs/en/api.mdx Documents aiUploadFile API with examples in English
apps/site/docs/zh/api.mdx Documents aiUploadFile API with examples in Chinese

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

quanru and others added 7 commits January 7, 2026 14:34
* refactor(core): update the implementation of file uploader

* refactor(core): update the implementation of file uploader

* refactor(core): rename params
* refactor(core): update the implementation of file uploader

* refactor(core): update the implementation of file uploader

* refactor(core): rename params

* docs(core): update aiAct

* refactor(core): update the implementation of file uploader
@quanru quanru merged commit a451fe8 into main Jan 8, 2026
9 checks passed
@quanru quanru deleted the feat/file-upload branch January 8, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants