selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

New record option, prefer label

Open coinzdude opened this issue 1 year ago • 1 comments

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

coinzdude avatar Apr 24 '23 17:04 coinzdude

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

joseph-monahan avatar Jun 14 '23 21:06 joseph-monahan