Skip to content

feat: generate multiple selectors in record actions#7

Open
Xia Dong (xiadongdev) wants to merge 1 commit into
developfrom
selector-array
Open

feat: generate multiple selectors in record actions#7
Xia Dong (xiadongdev) wants to merge 1 commit into
developfrom
selector-array

Conversation

@xiadongdev
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

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 enhances recorded actions so the recorder captures multiple selector candidates and the script generator can replay or save them as actions.

Changes:

  • Adds multi-selector generation in recorder.js, including stable attributes, XPath-like fallbacks, and tag-index selectors.
  • Updates recorded action labels and script conversion to use the primary valid selector.
  • Adds support for recorded select dropdown changes via a new selectValue action.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
recorder.js Records selector arrays for clicks, inputs, checkboxes/radios, and selects.
script_generator.js Converts selector arrays into generated scripts and Visualping preactions.

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

Comment thread script_generator.js
Comment thread script_generator.js
Comment thread script_generator.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants