I'm testing this tool on a React site and the class names have random hashes appended to them, as a result I need to select elements where the class name contains.
Using this selector on the Backstopjs.io site throws a puppeteer error, and I know for a fact that if I were to use that selector in puppeteer it would work. Anyone know what the issue could be? Is there something I can/should customize?
I'm using the following selector p[class*='supportsBlock']
And here is the error I get
Puppeteer encountered an error while running scenario "BackstopJS Homepage"
Error: Evaluation failed: SyntaxError: Unexpected identifier
Puppeteer encountered an error while running scenario "BackstopJS Homepage"
Error: Evaluation failed: SyntaxError: Unexpected identifier
I'm testing this tool on a React site and the class names have random hashes appended to them, as a result I need to select elements where the class name contains.
Using this selector on the Backstopjs.io site throws a puppeteer error, and I know for a fact that if I were to use that selector in puppeteer it would work. Anyone know what the issue could be? Is there something I can/should customize?
I'm using the following selector
p[class*='supportsBlock']
And here is the error I get
Here is my backstop config