Lets assume I have a document storage and every document has a menu. Menu button has data-cy locator with the name of the document. How do I make it right in the code?
data-cy="PDF file # 1939-dropdown"
where ‘-dropdown’ part is permanent and ‘PDF file # 1939’ is changing depends on file.
i am expecting something like
dropDownLocator = ‘{fileName}
-dropdown’
But I dont know how to make it right.
New contributor
Alex Y is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.