Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Codegen could have an option for more specific locators #30899

Open
EternityForest opened this issue May 20, 2024 · 0 comments
Open

Comments

@EternityForest
Copy link

馃殌 Feature Request

This is a wonderful project, but I do find almost all Codegen tests need extensive manual cleanup.

In particular, clicking a button that is inside a table row sometimes seems to produce a locator that is not aware of what row it's in.

Also, clicking a button inside a div will select just that button, without being aware that there could be other similar buttons in similar divs.

It would be really cool if the locator choosing algorithm could use the chain of nested headers, the table rows, etc

Example

I make a list of sales, each one represented as a card div, and each having an edit button or some action like that.

In the Codegen, I select an edit button, and am prompted to choose a selector, with options for selectors representing things like "A button named edit that is the descendent of a div with header "Jun 30", inside a div with header "Sales".

Motivation

It would allow for less manual editing of Codegen tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants