With Playwright, I am attempting to locate an element based on the value of a variable
For instance:
let username = 'Sully'
await page.click(`li:has-text(${username})`)
However, I encounter the following error:
page.click: Error: "has-text" engine expects a single string