Answer the question
In order to leave comments, you need to log in
Nightmare.js how to specify in .evaluate onclick?
There are data strips on the site, consisting of 4 classes with text.
To get to the classes, you need to specify a unique number, and it is only in "onclick" - g_0_plEVcqy2.
I don't know how to specify this unique number in .evaluate
.evaluate(() => document.querySelector('???????????????').innerText)
.end()
.then(console.log)
.catch((error) => {
console.error('Search failed:', error);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question