'how to concatenate a date string inside an html element locator with javascript
I have the following line of code in a playwright test using js
await page.click('[aria-label="Choose Friday, March 4th, 2022"]');
I want to store the date inside a variable like this:
let date = "Friday, March 4th, 2022";
which I have as
await page.click('[aria-label="Choose 'date' "]');
however in my editor I see the warning
',' expected
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
