Use text value of a variable in web locator
The use case is we have a list of notes with a 'delete note' button next to each single note message. The text case first generate a random string and store it in a variable called 'note_text'. We then want to create a new note with this text, and after delete it use web locator.
We prefer to locate this 'delete note' button with something similar to: div contains text that equal the the value of the variable 'note_next' -> child delete button in this div.
The question is how can we pass this test case variable to the web locator?
Please sign in to leave a comment.