rockmelonqa / rockmelonqa-ide

Test Automation IDE that generates and runs Playwright and Selenium code
MIT License
4 stars 3 forks source link

Setting "Find By = Attribute" to locate a page element causes codegen to fail #57

Closed brogreenmoon closed 1 year ago

brogreenmoon commented 1 year ago

image

image

The Data field for Find By Attribute should have the same usage as "Verify Attribute" in ticket 16, e.g. set to a key/value pair, such as "spellcheck=false" or "enabled=true".

Refer to https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-attribute.

brogreenmoon commented 1 year ago

Implemented:

image

image

Just one very small nitpicky thing - can we remove the extra semicolon in the generated code please?

brogreenmoon commented 1 year ago

image

Also confirmed that Find By Attribute still functions correctly:

image

image

image