A
A
Alexey2017-09-18 15:03:34
JavaScript
Alexey, 2017-09-18 15:03:34

Nightmare.js how to specify in .evaluate onclick?

dec544e9dab24bc8a6fa83aba2b4db7e.png
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 question

Ask a Question

731 491 924 answers to any question