SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.83k stars 768 forks source link

New record option, prefer label #1627

Open coinzdude opened 1 year ago

coinzdude commented 1 year ago

In modern framework recording, the controls will often not have usable ID/CSS selector tags, or the display value may generally be of more interest in recording and playback. Consider a project mode to allow the recorder to prioritize text display or text values for objects. This issue can be seen with the vue tree select control https://vue-treeselect.js.org/

In general, prefer the "contains" operator,

xpath=//label[contains(.,'Chicken Litties Sandwiches')]

image

joseph-monahan commented 1 year ago

This seems similiar to this request as well. Probably should group them together if one of these are ever worked: #1553